Struct dropbox_sdk::files::ThumbnailV2Arg [−][src]
#[non_exhaustive]pub struct ThumbnailV2Arg { pub resource: PathOrLink, pub format: ThumbnailFormat, pub size: ThumbnailSize, pub mode: ThumbnailMode, }
This is supported on crate feature
dbx_files only.Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resource: PathOrLinkInformation 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: ThumbnailFormatThe 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: ThumbnailSizeThe size for the thumbnail image.
mode: ThumbnailModeHow to resize and crop the image to achieve the desired size.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ThumbnailV2Argimpl Send for ThumbnailV2Argimpl Sync for ThumbnailV2Argimpl Unpin for ThumbnailV2Argimpl UnwindSafe for ThumbnailV2ArgBlanket Implementations
Mutably borrows from an owned value. Read more