Struct dropbox_sdk::sharing::AddFileMemberArgs
source · [−]#[non_exhaustive]pub struct AddFileMemberArgs {
pub file: PathOrId,
pub members: Vec<MemberSelector>,
pub custom_message: Option<String>,
pub quiet: bool,
pub access_level: AccessLevel,
pub add_message_as_comment: bool,
}dbx_sharing only.Expand description
Arguments for add_file_member().
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.file: PathOrIdFile to which to add members.
members: Vec<MemberSelector>Members to add. Note that even an email address is given, this may result in a user being directly added to the membership if that email is the user’s main account email.
custom_message: Option<String>Message to send to added members in their invitation.
quiet: boolWhether added members should be notified via email and device notifications of their invitation.
access_level: AccessLevelAccessLevel union object, describing what access level we want to give new members.
add_message_as_comment: boolIf the custom message should be added as a comment on the file.
Implementations
sourceimpl AddFileMemberArgs
impl AddFileMemberArgs
pub fn new(file: PathOrId, members: Vec<MemberSelector>) -> Self
pub fn with_custom_message(self, value: String) -> Self
pub fn with_quiet(self, value: bool) -> Self
pub fn with_access_level(self, value: AccessLevel) -> Self
pub fn with_add_message_as_comment(self, value: bool) -> Self
Trait Implementations
sourceimpl Clone for AddFileMemberArgs
impl Clone for AddFileMemberArgs
sourcefn clone(&self) -> AddFileMemberArgs
fn clone(&self) -> AddFileMemberArgs
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 AddFileMemberArgs
impl Debug for AddFileMemberArgs
sourceimpl<'de> Deserialize<'de> for AddFileMemberArgs
impl<'de> Deserialize<'de> for AddFileMemberArgs
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<AddFileMemberArgs> for AddFileMemberArgs
impl PartialEq<AddFileMemberArgs> for AddFileMemberArgs
sourcefn eq(&self, other: &AddFileMemberArgs) -> bool
fn eq(&self, other: &AddFileMemberArgs) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AddFileMemberArgs) -> bool
fn ne(&self, other: &AddFileMemberArgs) -> bool
This method tests for !=.
sourceimpl Serialize for AddFileMemberArgs
impl Serialize for AddFileMemberArgs
impl StructuralPartialEq for AddFileMemberArgs
Auto Trait Implementations
impl RefUnwindSafe for AddFileMemberArgs
impl Send for AddFileMemberArgs
impl Sync for AddFileMemberArgs
impl Unpin for AddFileMemberArgs
impl UnwindSafe for AddFileMemberArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more