#[non_exhaustive]pub struct MembersSetProfileArg {
pub user: UserSelectorArg,
pub new_email: Option<EmailAddress>,
pub new_external_id: Option<MemberExternalId>,
pub new_given_name: Option<OptionalNamePart>,
pub new_surname: Option<OptionalNamePart>,
pub new_persistent_id: Option<String>,
pub new_is_directory_restricted: Option<bool>,
}
Available on crate feature
dbx_team
only.Expand description
Exactly one of team_member_id, email, or external_id must be provided to identify the user account. At least one of new_email, new_external_id, new_given_name, and/or new_surname must be provided.
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.user: UserSelectorArg
Identity of user whose profile will be set.
new_email: Option<EmailAddress>
New email for member.
new_external_id: Option<MemberExternalId>
New external ID for member.
new_given_name: Option<OptionalNamePart>
New given name for member.
new_surname: Option<OptionalNamePart>
New surname for member.
new_persistent_id: Option<String>
New persistent ID. This field only available to teams using persistent ID SAML configuration.
new_is_directory_restricted: Option<bool>
New value for whether the user is a directory restricted user.
Implementations§
Source§impl MembersSetProfileArg
impl MembersSetProfileArg
pub fn new(user: UserSelectorArg) -> Self
pub fn with_new_email(self, value: EmailAddress) -> Self
pub fn with_new_external_id(self, value: MemberExternalId) -> Self
pub fn with_new_given_name(self, value: OptionalNamePart) -> Self
pub fn with_new_surname(self, value: OptionalNamePart) -> Self
pub fn with_new_persistent_id(self, value: String) -> Self
pub fn with_new_is_directory_restricted(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for MembersSetProfileArg
impl Clone for MembersSetProfileArg
Source§fn clone(&self) -> MembersSetProfileArg
fn clone(&self) -> MembersSetProfileArg
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 MembersSetProfileArg
impl Debug for MembersSetProfileArg
Source§impl<'de> Deserialize<'de> for MembersSetProfileArg
impl<'de> Deserialize<'de> for MembersSetProfileArg
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 PartialEq for MembersSetProfileArg
impl PartialEq for MembersSetProfileArg
Source§impl Serialize for MembersSetProfileArg
impl Serialize for MembersSetProfileArg
impl Eq for MembersSetProfileArg
impl StructuralPartialEq for MembersSetProfileArg
Auto Trait Implementations§
impl Freeze for MembersSetProfileArg
impl RefUnwindSafe for MembersSetProfileArg
impl Send for MembersSetProfileArg
impl Sync for MembersSetProfileArg
impl Unpin for MembersSetProfileArg
impl UnwindSafe for MembersSetProfileArg
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.