Enum dropbox_sdk::files::PaperDocUpdatePolicy
source · [−]#[non_exhaustive]
pub enum PaperDocUpdatePolicy {
Update,
Overwrite,
Prepend,
Append,
Other,
}
dbx_files
only.Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Update
Sets the doc content to the provided content if the provided paper_revision matches the latest doc revision. Otherwise, returns an error.
Overwrite
Sets the doc content to the provided content without checking paper_revision.
Prepend
Adds the provided content to the beginning of the doc without checking paper_revision.
Append
Adds the provided content to the end of the doc without checking paper_revision.
Other
Catch-all used for unrecognized values returned from the server. Encountering this value typically indicates that this SDK version is out of date.
Trait Implementations
sourceimpl Clone for PaperDocUpdatePolicy
impl Clone for PaperDocUpdatePolicy
sourcefn clone(&self) -> PaperDocUpdatePolicy
fn clone(&self) -> PaperDocUpdatePolicy
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 PaperDocUpdatePolicy
impl Debug for PaperDocUpdatePolicy
sourceimpl<'de> Deserialize<'de> for PaperDocUpdatePolicy
impl<'de> Deserialize<'de> for PaperDocUpdatePolicy
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 Serialize for PaperDocUpdatePolicy
impl Serialize for PaperDocUpdatePolicy
impl StructuralPartialEq for PaperDocUpdatePolicy
Auto Trait Implementations
impl RefUnwindSafe for PaperDocUpdatePolicy
impl Send for PaperDocUpdatePolicy
impl Sync for PaperDocUpdatePolicy
impl Unpin for PaperDocUpdatePolicy
impl UnwindSafe for PaperDocUpdatePolicy
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