#[non_exhaustive]pub struct MemberAddArgBase {
pub member_email: EmailAddress,
pub member_given_name: Option<OptionalNamePart>,
pub member_surname: Option<OptionalNamePart>,
pub member_external_id: Option<MemberExternalId>,
pub member_persistent_id: Option<String>,
pub send_welcome_email: bool,
pub is_directory_restricted: Option<bool>,
}
Available on crate features
sync_routes
and dbx_team
only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.member_email: EmailAddress
§member_given_name: Option<OptionalNamePart>
Member’s first name.
member_surname: Option<OptionalNamePart>
Member’s last name.
member_external_id: Option<MemberExternalId>
External ID for member.
member_persistent_id: Option<String>
Persistent ID for member. This field is only available to teams using persistent ID SAML configuration.
send_welcome_email: bool
Whether to send a welcome email to the member. If send_welcome_email is false, no email invitation will be sent to the user. This may be useful for apps using single sign-on (SSO) flows for onboarding that want to handle announcements themselves.
is_directory_restricted: Option<bool>
Whether a user is directory restricted.
Implementations§
Source§impl MemberAddArgBase
impl MemberAddArgBase
pub fn new(member_email: EmailAddress) -> Self
pub fn with_member_given_name(self, value: OptionalNamePart) -> Self
pub fn with_member_surname(self, value: OptionalNamePart) -> Self
pub fn with_member_external_id(self, value: MemberExternalId) -> Self
pub fn with_member_persistent_id(self, value: String) -> Self
pub fn with_send_welcome_email(self, value: bool) -> Self
pub fn with_is_directory_restricted(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for MemberAddArgBase
impl Clone for MemberAddArgBase
Source§fn clone(&self) -> MemberAddArgBase
fn clone(&self) -> MemberAddArgBase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MemberAddArgBase
impl Debug for MemberAddArgBase
Source§impl<'de> Deserialize<'de> for MemberAddArgBase
impl<'de> Deserialize<'de> for MemberAddArgBase
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MemberAddArg> for MemberAddArgBase
impl From<MemberAddArg> for MemberAddArgBase
Source§fn from(subtype: MemberAddArg) -> Self
fn from(subtype: MemberAddArg) -> Self
Converts to this type from the input type.
Source§impl From<MemberAddV2Arg> for MemberAddArgBase
impl From<MemberAddV2Arg> for MemberAddArgBase
Source§fn from(subtype: MemberAddV2Arg) -> Self
fn from(subtype: MemberAddV2Arg) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemberAddArgBase
impl PartialEq for MemberAddArgBase
Source§impl Serialize for MemberAddArgBase
impl Serialize for MemberAddArgBase
impl Eq for MemberAddArgBase
impl StructuralPartialEq for MemberAddArgBase
Auto Trait Implementations§
impl Freeze for MemberAddArgBase
impl RefUnwindSafe for MemberAddArgBase
impl Send for MemberAddArgBase
impl Sync for MemberAddArgBase
impl Unpin for MemberAddArgBase
impl UnwindSafe for MemberAddArgBase
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.