pub struct UploadedImage {
pub name: String,
pub full_size: ImageReference<FullSizeDimension>,
pub view_url: Url,
pub thumbnail: ImageReference<ThumbnailDimension>,
pub was_resized: bool,
}
Expand description
Represents a completed image upload to Uploads.im.
Fields§
§name: String
The name of an uploaded image. This usually does not match the name
of the original uploaded image file. This name is usually an ID value,
followed by the original extension of the uploaded image. For example,
something.jpg
may be renamed to vwk7b.jpg
.
full_size: ImageReference<FullSizeDimension>
A reference to the full-size uploaded image.
view_url: Url
A URL to a human-friendly page showing the uploaded image.
thumbnail: ImageReference<ThumbnailDimension>
A reference to a thumbnail version of the uploaded image.
was_resized: bool
Flags whether or not the uploaded image was resized upon upload.
Trait Implementations§
Source§impl Clone for UploadedImage
impl Clone for UploadedImage
Source§fn clone(&self) -> UploadedImage
fn clone(&self) -> UploadedImage
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 moreAuto Trait Implementations§
impl Freeze for UploadedImage
impl RefUnwindSafe for UploadedImage
impl Send for UploadedImage
impl Sync for UploadedImage
impl Unpin for UploadedImage
impl UnwindSafe for UploadedImage
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