[][src]Struct dropbox_sdk::files::ThumbnailArg

pub struct ThumbnailArg {
    pub path: ReadPath,
    pub format: ThumbnailFormat,
    pub size: ThumbnailSize,
    pub mode: ThumbnailMode,
}

Fields

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.

Methods

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 Debug for ThumbnailArg[src]

impl Serialize for ThumbnailArg[src]

impl<'de> Deserialize<'de> for ThumbnailArg[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]