Struct dropbox_sdk::files::ThumbnailV2Arg [−][src]
#[non_exhaustive]pub struct ThumbnailV2Arg { pub resource: PathOrLink, pub format: ThumbnailFormat, pub size: ThumbnailSize, pub mode: ThumbnailMode, }
dbx_files
only.Fields (Non-exhaustive)
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource: PathOrLink
Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path.
format: ThumbnailFormat
The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts.
size: ThumbnailSize
The size for the thumbnail image.
mode: ThumbnailMode
How to resize and crop the image to achieve the desired size.
Implementations
impl ThumbnailV2Arg
[src]
impl ThumbnailV2Arg
[src]pub fn new(resource: PathOrLink) -> Self
[src]
pub fn with_format(self, value: ThumbnailFormat) -> Self
[src]
pub fn with_size(self, value: ThumbnailSize) -> Self
[src]
pub fn with_mode(self, value: ThumbnailMode) -> Self
[src]
Trait Implementations
impl Clone for ThumbnailV2Arg
[src]
impl Clone for ThumbnailV2Arg
[src]fn clone(&self) -> ThumbnailV2Arg
[src]
fn clone(&self) -> ThumbnailV2Arg
[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 ThumbnailV2Arg
[src]
impl Debug for ThumbnailV2Arg
[src]impl<'de> Deserialize<'de> for ThumbnailV2Arg
[src]
impl<'de> Deserialize<'de> for ThumbnailV2Arg
[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<ThumbnailV2Arg> for ThumbnailV2Arg
[src]
impl PartialEq<ThumbnailV2Arg> for ThumbnailV2Arg
[src]fn eq(&self, other: &ThumbnailV2Arg) -> bool
[src]
fn eq(&self, other: &ThumbnailV2Arg) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ThumbnailV2Arg) -> bool
[src]
fn ne(&self, other: &ThumbnailV2Arg) -> bool
[src]This method tests for !=
.
impl Serialize for ThumbnailV2Arg
[src]
impl Serialize for ThumbnailV2Arg
[src]impl StructuralPartialEq for ThumbnailV2Arg
[src]
Auto Trait Implementations
impl RefUnwindSafe for ThumbnailV2Arg
impl Send for ThumbnailV2Arg
impl Sync for ThumbnailV2Arg
impl Unpin for ThumbnailV2Arg
impl UnwindSafe for ThumbnailV2Arg
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>,