#[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,
}
Available on crate features
sync_routes
and dbx_sharing
only.Expand description
Arguments for add_file_member()
.
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.file: PathOrId
File 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: bool
Whether added members should be notified via email and device notifications of their invitation.
access_level: AccessLevel
AccessLevel union object, describing what access level we want to give new members.
add_message_as_comment: bool
If the custom message should be added as a comment on the file.
Implementations§
Source§impl 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§
Source§impl Clone for AddFileMemberArgs
impl Clone for AddFileMemberArgs
Source§fn clone(&self) -> AddFileMemberArgs
fn clone(&self) -> AddFileMemberArgs
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 AddFileMemberArgs
impl Debug for AddFileMemberArgs
Source§impl<'de> Deserialize<'de> for AddFileMemberArgs
impl<'de> Deserialize<'de> for AddFileMemberArgs
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 AddFileMemberArgs
impl PartialEq for AddFileMemberArgs
Source§impl Serialize for AddFileMemberArgs
impl Serialize for AddFileMemberArgs
impl Eq for AddFileMemberArgs
impl StructuralPartialEq for AddFileMemberArgs
Auto Trait Implementations§
impl Freeze for AddFileMemberArgs
impl RefUnwindSafe for AddFileMemberArgs
impl Send for AddFileMemberArgs
impl Sync for AddFileMemberArgs
impl Unpin for AddFileMemberArgs
impl UnwindSafe for AddFileMemberArgs
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.