Struct dropbox_sdk::team::MembersRemoveArg
source · [−]#[non_exhaustive]pub struct MembersRemoveArg {
pub user: UserSelectorArg,
pub wipe_data: bool,
pub transfer_dest_id: Option<UserSelectorArg>,
pub transfer_admin_id: Option<UserSelectorArg>,
pub keep_account: bool,
pub retain_team_shares: bool,
}dbx_team only.Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user: UserSelectorArgIdentity of user to remove/suspend/have their files moved.
wipe_data: boolIf provided, controls if the user’s data will be deleted on their linked devices.
transfer_dest_id: Option<UserSelectorArg>If provided, files from the deleted member account will be transferred to this user.
transfer_admin_id: Option<UserSelectorArg>If provided, errors during the transfer process will be sent via email to this user. If the transfer_dest_id argument was provided, then this argument must be provided as well.
keep_account: boolDowngrade the member to a Basic account. The user will retain the email address associated
with their Dropbox account and data in their account that is not restricted to team
members. In order to keep the account the argument wipe_data should be set to false.
If provided, allows removed users to keep access to Dropbox folders (not Dropbox Paper
folders) already explicitly shared with them (not via a group) when they are downgraded to a
Basic account. Users will not retain access to folders that do not allow external sharing.
In order to keep the sharing relationships, the arguments wipe_data should be set to
false and keep_account should be set to true.
Implementations
sourceimpl MembersRemoveArg
impl MembersRemoveArg
pub fn new(user: UserSelectorArg) -> Self
pub fn with_wipe_data(self, value: bool) -> Self
pub fn with_transfer_dest_id(self, value: UserSelectorArg) -> Self
pub fn with_transfer_admin_id(self, value: UserSelectorArg) -> Self
pub fn with_keep_account(self, value: bool) -> Self
Trait Implementations
sourceimpl Clone for MembersRemoveArg
impl Clone for MembersRemoveArg
sourcefn clone(&self) -> MembersRemoveArg
fn clone(&self) -> MembersRemoveArg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MembersRemoveArg
impl Debug for MembersRemoveArg
sourceimpl<'de> Deserialize<'de> for MembersRemoveArg
impl<'de> Deserialize<'de> for MembersRemoveArg
sourcefn 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
sourceimpl PartialEq<MembersRemoveArg> for MembersRemoveArg
impl PartialEq<MembersRemoveArg> for MembersRemoveArg
sourcefn eq(&self, other: &MembersRemoveArg) -> bool
fn eq(&self, other: &MembersRemoveArg) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MembersRemoveArg) -> bool
fn ne(&self, other: &MembersRemoveArg) -> bool
This method tests for !=.
sourceimpl Serialize for MembersRemoveArg
impl Serialize for MembersRemoveArg
impl Eq for MembersRemoveArg
impl StructuralEq for MembersRemoveArg
impl StructuralPartialEq for MembersRemoveArg
Auto Trait Implementations
impl RefUnwindSafe for MembersRemoveArg
impl Send for MembersRemoveArg
impl Sync for MembersRemoveArg
impl Unpin for MembersRemoveArg
impl UnwindSafe for MembersRemoveArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more