pub struct UploadInfo {
pub id: u64,
pub url: String,
pub short_url: Option<String>,
pub short_path: Option<String>,
pub original_filename: String,
pub filesize: u64,
pub width: Option<u64>,
pub height: Option<u64>,
}Expand description
Distilled fields from /uploads.json — the response carries more (id,
width/height, dominant_color, etc.) but these are the ones every caller
will reach for.
Fields§
§id: u64§url: String§short_url: Option<String>§short_path: Option<String>§original_filename: String§filesize: u64§width: Option<u64>§height: Option<u64>Trait Implementations§
Source§impl Clone for UploadInfo
impl Clone for UploadInfo
Source§fn clone(&self) -> UploadInfo
fn clone(&self) -> UploadInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UploadInfo
impl Debug for UploadInfo
Source§impl<'de> Deserialize<'de> for UploadInfo
impl<'de> Deserialize<'de> for UploadInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UploadInfo
impl RefUnwindSafe for UploadInfo
impl Send for UploadInfo
impl Sync for UploadInfo
impl Unpin for UploadInfo
impl UnsafeUnpin for UploadInfo
impl UnwindSafe for UploadInfo
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