#[non_exhaustive]pub struct ObjectInfo {
pub key: String,
pub size: u64,
pub last_modified: OffsetDateTime,
pub storage_class: Option<String>,
pub restore_status: Option<RestoreStatus>,
pub etag: String,
pub checksum_algorithms: Vec<ChecksumAlgorithm>,
}Expand description
Metadata about a single S3 object.
See Object in the Amazon S3 API Reference for more details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringKey for this object.
size: u64Size of this object in bytes.
last_modified: OffsetDateTimeThe time this object was last modified.
storage_class: Option<String>Storage class for this object. Optional because head_object does not return the storage class in its response for Standard objects. See examples in the Amazon S3 API Reference
restore_status: Option<RestoreStatus>Objects in flexible retrieval storage classes (such as GLACIER and DEEP_ARCHIVE) are only accessible after restoration
etag: StringEntity tag of this object.
checksum_algorithms: Vec<ChecksumAlgorithm>The algorithm that was used to create a checksum of the object.
The Amazon S3 API Reference specifies this field as a list of strings, so we return here a Vec of ChecksumAlgorithm.
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 moreAuto Trait Implementations§
impl Freeze for ObjectInfo
impl RefUnwindSafe for ObjectInfo
impl Send for ObjectInfo
impl Sync for ObjectInfo
impl Unpin for ObjectInfo
impl UnsafeUnpin 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