pub struct ObjectInfo {
pub size: u64,
pub crc32: u32,
pub content_type: String,
pub created_at: u64,
}Expand description
Lightweight object info returned by head().
Fields§
§size: u64Object size in bytes.
crc32: u32CRC32 checksum.
content_type: StringMIME content type.
created_at: u64Creation timestamp (unix seconds).
Implementations§
Source§impl ObjectInfo
impl ObjectInfo
Sourcepub fn from_meta(meta: &ObjectMeta) -> Self
pub fn from_meta(meta: &ObjectMeta) -> Self
Build ObjectInfo from ObjectMeta.
Trait Implementations§
Source§impl Clone for ObjectInfo
impl Clone for ObjectInfo
Source§fn clone(&self) -> ObjectInfo
fn clone(&self) -> ObjectInfo
Returns a duplicate 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 moreSource§impl Debug for ObjectInfo
impl Debug for ObjectInfo
Source§impl PartialEq for ObjectInfo
impl PartialEq for ObjectInfo
impl StructuralPartialEq for ObjectInfo
Auto Trait Implementations§
impl Freeze for ObjectInfo
impl RefUnwindSafe for ObjectInfo
impl Send for ObjectInfo
impl Sync for ObjectInfo
impl Unpin for ObjectInfo
impl UnwindSafe for ObjectInfo
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