Struct dropbox_sdk::sharing::UnshareFolderArg
source · [−]#[non_exhaustive]pub struct UnshareFolderArg {
pub shared_folder_id: SharedFolderId,
pub leave_a_copy: bool,
}Available on crate feature
dbx_sharing 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.The ID for the shared folder.
leave_a_copy: boolIf true, members of this shared folder will get a copy of this folder after it’s unshared. Otherwise, it will be removed from their Dropbox. The current user, who is an owner, will always retain their copy.
Implementations
sourceimpl UnshareFolderArg
impl UnshareFolderArg
pub fn new(shared_folder_id: SharedFolderId) -> Self
pub fn with_leave_a_copy(self, value: bool) -> Self
Trait Implementations
sourceimpl Clone for UnshareFolderArg
impl Clone for UnshareFolderArg
sourcefn clone(&self) -> UnshareFolderArg
fn clone(&self) -> UnshareFolderArg
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 UnshareFolderArg
impl Debug for UnshareFolderArg
sourceimpl<'de> Deserialize<'de> for UnshareFolderArg
impl<'de> Deserialize<'de> for UnshareFolderArg
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
sourcefn eq(&self, other: &UnshareFolderArg) -> bool
fn eq(&self, other: &UnshareFolderArg) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UnshareFolderArg) -> bool
fn ne(&self, other: &UnshareFolderArg) -> bool
This method tests for !=.
sourceimpl Serialize for UnshareFolderArg
impl Serialize for UnshareFolderArg
impl Eq for UnshareFolderArg
impl StructuralEq for UnshareFolderArg
impl StructuralPartialEq for UnshareFolderArg
Auto Trait Implementations
impl RefUnwindSafe for UnshareFolderArg
impl Send for UnshareFolderArg
impl Sync for UnshareFolderArg
impl Unpin for UnshareFolderArg
impl UnwindSafe for UnshareFolderArg
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