Struct dropbox_sdk::files::PreviewResult
source · [−]#[non_exhaustive]pub struct PreviewResult {
pub file_metadata: Option<FileMetadata>,
pub link_metadata: Option<MinimalFileLinkMetadata>,
}
dbx_files
only.Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.file_metadata: Option<FileMetadata>
Metadata corresponding to the file received as an argument. Will be populated if the endpoint is called with a path (ReadPath).
link_metadata: Option<MinimalFileLinkMetadata>
Minimal metadata corresponding to the file received as an argument. Will be populated if the endpoint is called using a shared link (SharedLinkFileInfo).
Implementations
sourceimpl PreviewResult
impl PreviewResult
pub fn with_file_metadata(self, value: FileMetadata) -> Self
pub fn with_link_metadata(self, value: MinimalFileLinkMetadata) -> Self
Trait Implementations
sourceimpl Clone for PreviewResult
impl Clone for PreviewResult
sourcefn clone(&self) -> PreviewResult
fn clone(&self) -> PreviewResult
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 PreviewResult
impl Debug for PreviewResult
sourceimpl Default for PreviewResult
impl Default for PreviewResult
sourcefn default() -> PreviewResult
fn default() -> PreviewResult
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PreviewResult
impl<'de> Deserialize<'de> for PreviewResult
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 PartialEq<PreviewResult> for PreviewResult
impl PartialEq<PreviewResult> for PreviewResult
sourcefn eq(&self, other: &PreviewResult) -> bool
fn eq(&self, other: &PreviewResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PreviewResult) -> bool
fn ne(&self, other: &PreviewResult) -> bool
This method tests for !=
.
sourceimpl Serialize for PreviewResult
impl Serialize for PreviewResult
impl StructuralPartialEq for PreviewResult
Auto Trait Implementations
impl RefUnwindSafe for PreviewResult
impl Send for PreviewResult
impl Sync for PreviewResult
impl Unpin for PreviewResult
impl UnwindSafe for PreviewResult
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