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

The domain hosting the Uploads.im service

An optional width to which an uploaded image should be resized to.

An optional width to which the thumbnail of an uploaded image should be resized to.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for UploadOptions
[src]

[src]

Formats the value using the given formatter.

impl Default for UploadOptions
[src]

[src]

Returns the "default value" for a type. Read more