Struct dropbox_sdk::files::ExportMetadata [−][src]
#[non_exhaustive]pub struct ExportMetadata { pub name: String, pub size: u64, pub export_hash: Option<Sha256HexHash>, pub paper_revision: Option<i64>, }
dbx_files
only.Fields (Non-exhaustive)
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The last component of the path (including extension). This never contains a slash.
size: u64
The file size in bytes.
export_hash: Option<Sha256HexHash>
A hash based on the exported file content. This field can be used to verify data integrity. Similar to content hash. For more information see our Content hash page.
paper_revision: Option<i64>
If the file is a Paper doc, this gives the latest doc revision which can be used in
paper_update()
.
Implementations
impl ExportMetadata
[src]
impl ExportMetadata
[src]pub fn new(name: String, size: u64) -> Self
[src]
pub fn with_export_hash(self, value: Sha256HexHash) -> Self
[src]
pub fn with_paper_revision(self, value: i64) -> Self
[src]
Trait Implementations
impl Clone for ExportMetadata
[src]
impl Clone for ExportMetadata
[src]fn clone(&self) -> ExportMetadata
[src]
fn clone(&self) -> ExportMetadata
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ExportMetadata
[src]
impl Debug for ExportMetadata
[src]impl<'de> Deserialize<'de> for ExportMetadata
[src]
impl<'de> Deserialize<'de> for ExportMetadata
[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<ExportMetadata> for ExportMetadata
[src]
impl PartialEq<ExportMetadata> for ExportMetadata
[src]fn eq(&self, other: &ExportMetadata) -> bool
[src]
fn eq(&self, other: &ExportMetadata) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ExportMetadata) -> bool
[src]
fn ne(&self, other: &ExportMetadata) -> bool
[src]This method tests for !=
.
impl Serialize for ExportMetadata
[src]
impl Serialize for ExportMetadata
[src]impl StructuralPartialEq for ExportMetadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExportMetadata
impl Send for ExportMetadata
impl Sync for ExportMetadata
impl Unpin for ExportMetadata
impl UnwindSafe for ExportMetadata
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,