Struct dropbox_sdk::files::PaperUpdateArg[][src]

#[non_exhaustive]pub struct PaperUpdateArg {
    pub path: WritePathOrId,
    pub import_format: ImportFormat,
    pub doc_update_policy: PaperDocUpdatePolicy,
    pub paper_revision: Option<i64>,
}
This is supported on crate feature dbx_files only.

Fields (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: WritePathOrId

Path in the user's Dropbox to update. The path must correspond to a Paper doc or an error will be returned.

import_format: ImportFormat

The format of the provided data.

doc_update_policy: PaperDocUpdatePolicy

How the provided content should be applied to the doc.

paper_revision: Option<i64>

The latest doc revision. Required when doc_update_policy is update. This value must match the current revision of the doc or error revision_mismatch will be returned.

Implementations

impl PaperUpdateArg[src]

pub fn new(
    path: WritePathOrId,
    import_format: ImportFormat,
    doc_update_policy: PaperDocUpdatePolicy
) -> Self
[src]

pub fn with_paper_revision(self, value: i64) -> Self[src]

Trait Implementations

impl Clone for PaperUpdateArg[src]

impl Debug for PaperUpdateArg[src]

impl<'de> Deserialize<'de> for PaperUpdateArg[src]

impl PartialEq<PaperUpdateArg> for PaperUpdateArg[src]

impl Serialize for PaperUpdateArg[src]

impl StructuralPartialEq for PaperUpdateArg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.