pub struct AssetResponse {
pub id: AssetId,
pub name: String,
pub label: Option<String>,
pub content_type: String,
pub size: u64,
pub download_count: u64,
pub created_at: String,
pub uploader: AuthorInfo,
}Expand description
Asset response for API.
Fields§
§id: AssetIdAsset ID.
name: StringFilename.
label: Option<String>Optional label.
content_type: StringMIME content type.
size: u64Size in bytes.
download_count: u64Download count.
created_at: StringUpload timestamp.
uploader: AuthorInfoUploader information.
Trait Implementations§
Source§impl Clone for AssetResponse
impl Clone for AssetResponse
Source§fn clone(&self) -> AssetResponse
fn clone(&self) -> AssetResponse
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 AssetResponse
impl Debug for AssetResponse
Source§impl<'de> Deserialize<'de> for AssetResponse
impl<'de> Deserialize<'de> for AssetResponse
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 AssetResponse
impl RefUnwindSafe for AssetResponse
impl Send for AssetResponse
impl Sync for AssetResponse
impl Unpin for AssetResponse
impl UnsafeUnpin for AssetResponse
impl UnwindSafe for AssetResponse
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