Struct dropbox_sdk::sharing::CreateSharedLinkArg
source · [−]#[non_exhaustive]pub struct CreateSharedLinkArg {
pub path: String,
pub short_url: bool,
pub pending_upload: Option<PendingUploadMode>,
}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.path: StringThe path to share.
short_url: boolpending_upload: Option<PendingUploadMode>If it’s okay to share a path that does not yet exist, set this to either
PendingUploadMode::File or
PendingUploadMode::Folder to indicate whether to assume it’s
a file or folder.
Implementations
sourceimpl CreateSharedLinkArg
impl CreateSharedLinkArg
pub fn new(path: String) -> Self
pub fn with_short_url(self, value: bool) -> Self
pub fn with_pending_upload(self, value: PendingUploadMode) -> Self
Trait Implementations
sourceimpl Clone for CreateSharedLinkArg
impl Clone for CreateSharedLinkArg
sourcefn clone(&self) -> CreateSharedLinkArg
fn clone(&self) -> CreateSharedLinkArg
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 CreateSharedLinkArg
impl Debug for CreateSharedLinkArg
sourceimpl<'de> Deserialize<'de> for CreateSharedLinkArg
impl<'de> Deserialize<'de> for CreateSharedLinkArg
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: &CreateSharedLinkArg) -> bool
fn eq(&self, other: &CreateSharedLinkArg) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CreateSharedLinkArg) -> bool
fn ne(&self, other: &CreateSharedLinkArg) -> bool
This method tests for !=.
sourceimpl Serialize for CreateSharedLinkArg
impl Serialize for CreateSharedLinkArg
impl Eq for CreateSharedLinkArg
impl StructuralEq for CreateSharedLinkArg
impl StructuralPartialEq for CreateSharedLinkArg
Auto Trait Implementations
impl RefUnwindSafe for CreateSharedLinkArg
impl Send for CreateSharedLinkArg
impl Sync for CreateSharedLinkArg
impl Unpin for CreateSharedLinkArg
impl UnwindSafe for CreateSharedLinkArg
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