#[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, }
This is supported on crate feature 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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.