pub struct BlobMetadata {
pub filename: String,
pub mime_type: String,
pub size: u64,
pub created: DateTime<Utc>,
}Expand description
Struct representing the metadata associated to a blob
Fields§
§filename: StringThe filename of the blob
mime_type: StringThe mime-type of the blob (e.g. image/png)
size: u64The size of the blob in bytes
created: DateTime<Utc>The creation timestamp of the blob
Implementations§
Source§impl BlobMetadata
impl BlobMetadata
pub fn created_str(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlobMetadata
impl RefUnwindSafe for BlobMetadata
impl Send for BlobMetadata
impl Sync for BlobMetadata
impl Unpin for BlobMetadata
impl UnwindSafe for BlobMetadata
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