Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::ObjectVersion
pub struct ObjectVersion {
pub e_tag: Option<String>,
pub checksum_algorithm: Option<Vec<ChecksumAlgorithm, Global>>,
pub size: i64,
pub storage_class: Option<ObjectVersionStorageClass>,
pub key: Option<String>,
pub version_id: Option<String>,
pub is_latest: bool,
pub last_modified: Option<DateTime>,
pub owner: Option<Owner>,
pub restore_status: Option<RestoreStatus>,
}
Expand description
The version of an object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.e_tag: Option<String>
The entity tag is an MD5 hash of that version of the object.
checksum_algorithm: Option<Vec<ChecksumAlgorithm, Global>>
The algorithm that was used to create a checksum of the object.
size: i64
Size in bytes of the object.
storage_class: Option<ObjectVersionStorageClass>
The class of storage used to store the object.
key: Option<String>
The object key.
version_id: Option<String>
Version ID of an object.
is_latest: bool
Specifies whether the object is (true) or is not (false) the latest version of an object.
last_modified: Option<DateTime>
Date and time the object was last modified.
owner: Option<Owner>
Specifies the owner of the object.
restore_status: Option<RestoreStatus>
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
Implementations§
§impl ObjectVersion
impl ObjectVersion
pub fn checksum_algorithm(&self) -> Option<&[ChecksumAlgorithm]>
pub fn checksum_algorithm(&self) -> Option<&[ChecksumAlgorithm]>
The algorithm that was used to create a checksum of the object.
pub fn storage_class(&self) -> Option<&ObjectVersionStorageClass>
pub fn storage_class(&self) -> Option<&ObjectVersionStorageClass>
The class of storage used to store the object.
pub fn version_id(&self) -> Option<&str>
pub fn version_id(&self) -> Option<&str>
Version ID of an object.
pub fn is_latest(&self) -> bool
pub fn is_latest(&self) -> bool
Specifies whether the object is (true) or is not (false) the latest version of an object.
pub fn last_modified(&self) -> Option<&DateTime>
pub fn last_modified(&self) -> Option<&DateTime>
Date and time the object was last modified.
pub fn restore_status(&self) -> Option<&RestoreStatus>
pub fn restore_status(&self) -> Option<&RestoreStatus>
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
§impl ObjectVersion
impl ObjectVersion
pub fn builder() -> ObjectVersionBuilder
pub fn builder() -> ObjectVersionBuilder
Creates a new builder-style object to manufacture ObjectVersion
.
Trait Implementations§
§impl Clone for ObjectVersion
impl Clone for ObjectVersion
§fn clone(&self) -> ObjectVersion
fn clone(&self) -> ObjectVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ObjectVersion
impl Debug for ObjectVersion
§impl PartialEq<ObjectVersion> for ObjectVersion
impl PartialEq<ObjectVersion> for ObjectVersion
§fn eq(&self, other: &ObjectVersion) -> bool
fn eq(&self, other: &ObjectVersion) -> bool
self
and other
values to be equal, and is used
by ==
.