pub struct UploadOptions {
pub host: String,
pub resize_width: Option<FullSizeDimension>,
pub thumbnail_width: Option<ThumbnailDimension>,
pub family_unsafe: Option<bool>,
}
Expand description
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§
Source§impl Clone for UploadOptions
impl Clone for UploadOptions
Source§fn clone(&self) -> UploadOptions
fn clone(&self) -> UploadOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UploadOptions
impl Debug for UploadOptions
Auto Trait Implementations§
impl Freeze for UploadOptions
impl RefUnwindSafe for UploadOptions
impl Send for UploadOptions
impl Sync for UploadOptions
impl Unpin for UploadOptions
impl UnwindSafe for UploadOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more