pub struct CreateTeamGroupRequest {
pub name: String,
pub team_id: Option<TeamId>,
pub description: Option<String>,
pub external_id: Option<String>,
pub role_ids: Vec<RoleId>,
pub user_ids: Vec<UserId>,
pub scope_filters: Option<ScopeFilters>,
pub next_gen_scope_id: Option<String>,
}
Expand description
/ Create team group request
Fields§
§name: String
/ Team group name
team_id: Option<TeamId>
/ Team which the group will be associated with. If not set, creates group and associates it with logged in team / Bear in mind that an user can only create team for logged in team. Unless you want to express this as a / validation of what the logged in team should be, this field can remain empty.
description: Option<String>
/ Team group description
external_id: Option<String>
/ Team group external_id. Applies if team is externally defined.
role_ids: Vec<RoleId>
/ Roles to associate with team group
user_ids: Vec<UserId>
/ Users to associate with team group
scope_filters: Option<ScopeFilters>
/ Optionally set team group scope filters
next_gen_scope_id: Option<String>
Implementations§
source§impl CreateTeamGroupRequest
impl CreateTeamGroupRequest
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
sourcepub fn external_id(&self) -> &str
pub fn external_id(&self) -> &str
Returns the value of external_id
, or the default value if external_id
is unset.
sourcepub fn next_gen_scope_id(&self) -> &str
pub fn next_gen_scope_id(&self) -> &str
Returns the value of next_gen_scope_id
, or the default value if next_gen_scope_id
is unset.
Trait Implementations§
source§impl Clone for CreateTeamGroupRequest
impl Clone for CreateTeamGroupRequest
source§fn clone(&self) -> CreateTeamGroupRequest
fn clone(&self) -> CreateTeamGroupRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateTeamGroupRequest
impl Debug for CreateTeamGroupRequest
source§impl Default for CreateTeamGroupRequest
impl Default for CreateTeamGroupRequest
source§impl<'de> Deserialize<'de> for CreateTeamGroupRequest
impl<'de> Deserialize<'de> for CreateTeamGroupRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Message for CreateTeamGroupRequest
impl Message for CreateTeamGroupRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CreateTeamGroupRequest
impl PartialEq for CreateTeamGroupRequest
source§impl Serialize for CreateTeamGroupRequest
impl Serialize for CreateTeamGroupRequest
impl StructuralPartialEq for CreateTeamGroupRequest
Auto Trait Implementations§
impl Freeze for CreateTeamGroupRequest
impl RefUnwindSafe for CreateTeamGroupRequest
impl Send for CreateTeamGroupRequest
impl Sync for CreateTeamGroupRequest
impl Unpin for CreateTeamGroupRequest
impl UnwindSafe for CreateTeamGroupRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request