Struct dropbox_sdk::files::ThumbnailArg [−][src]
#[non_exhaustive]pub struct ThumbnailArg { pub path: ReadPath, 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.path: ReadPath
The path to the image file you want to thumbnail.
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 ThumbnailArg
[src]
impl ThumbnailArg
[src]pub fn new(path: ReadPath) -> 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 ThumbnailArg
[src]
impl Clone for ThumbnailArg
[src]fn clone(&self) -> ThumbnailArg
[src]
fn clone(&self) -> ThumbnailArg
[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 ThumbnailArg
[src]
impl Debug for ThumbnailArg
[src]impl<'de> Deserialize<'de> for ThumbnailArg
[src]
impl<'de> Deserialize<'de> for ThumbnailArg
[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<ThumbnailArg> for ThumbnailArg
[src]
impl PartialEq<ThumbnailArg> for ThumbnailArg
[src]fn eq(&self, other: &ThumbnailArg) -> bool
[src]
fn eq(&self, other: &ThumbnailArg) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ThumbnailArg) -> bool
[src]
fn ne(&self, other: &ThumbnailArg) -> bool
[src]This method tests for !=
.
impl Serialize for ThumbnailArg
[src]
impl Serialize for ThumbnailArg
[src]impl StructuralPartialEq for ThumbnailArg
[src]
Auto Trait Implementations
impl RefUnwindSafe for ThumbnailArg
impl Send for ThumbnailArg
impl Sync for ThumbnailArg
impl Unpin for ThumbnailArg
impl UnwindSafe for ThumbnailArg
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>,