pub struct ObjectInfo {
pub key: String,
pub size_bytes: Option<i64>,
pub size_human: Option<String>,
pub last_modified: Option<Timestamp>,
pub etag: Option<String>,
pub storage_class: Option<String>,
pub content_type: Option<String>,
pub is_dir: bool,
}Expand description
Metadata for an object or bucket
Fields§
§key: StringObject key or bucket name
size_bytes: Option<i64>Size in bytes (None for buckets)
size_human: Option<String>Human-readable size
last_modified: Option<Timestamp>Last modified timestamp
etag: Option<String>ETag (usually MD5 for single-part uploads)
storage_class: Option<String>Storage class
content_type: Option<String>Content type
is_dir: boolWhether this is a directory/prefix
Implementations§
Source§impl ObjectInfo
impl ObjectInfo
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<'de> Deserialize<'de> for ObjectInfo
impl<'de> Deserialize<'de> for ObjectInfo
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 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