Struct uploads_im_client::UploadOptions
[−]
[src]
pub struct UploadOptions { pub host: String, pub resize_width: Option<FullSizeDimension>, pub thumbnail_width: Option<ThumbnailDimension>, pub family_unsafe: Option<bool>, }
Models options exposed to users of the upload API.
Fields
host: String
The domain hosting the Uploads.im service
resize_width: Option<FullSizeDimension>
An optional width to which an uploaded image should be resized to.
thumbnail_width: Option<ThumbnailDimension>
An optional width to which the thumbnail of an uploaded image should be resized to.
family_unsafe: Option<bool>
An optional flag to mark an uploaded image as "family unsafe", or in other words, adult content or NSFW.
Trait Implementations
impl Clone for UploadOptions
[src]
fn clone(&self) -> UploadOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more