pub struct StorageMetadata {
pub size_bytes: u64,
pub modified: Option<DateTime<Utc>>,
pub content_type: Option<String>,
pub checksum: Option<String>,
}Expand description
Metadata about a single file/object in storage.
Fields§
§size_bytes: u64Size in bytes.
modified: Option<DateTime<Utc>>Last modification time, if available.
content_type: Option<String>MIME content type, if available.
checksum: Option<String>Checksum (e.g. ETag, MD5), if available.
Trait Implementations§
Source§impl Clone for StorageMetadata
impl Clone for StorageMetadata
Source§fn clone(&self) -> StorageMetadata
fn clone(&self) -> StorageMetadata
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 moreAuto Trait Implementations§
impl Freeze for StorageMetadata
impl RefUnwindSafe for StorageMetadata
impl Send for StorageMetadata
impl Sync for StorageMetadata
impl Unpin for StorageMetadata
impl UnsafeUnpin for StorageMetadata
impl UnwindSafe for StorageMetadata
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