Struct aws_sdk_s3::types::ObjectVersion
source · #[non_exhaustive]pub struct ObjectVersion {
pub e_tag: Option<String>,
pub checksum_algorithm: Option<Vec<ChecksumAlgorithm>>,
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>>
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§
source§impl ObjectVersion
impl ObjectVersion
sourcepub fn e_tag(&self) -> Option<&str>
pub fn e_tag(&self) -> Option<&str>
The entity tag is an MD5 hash of that version of the object.
sourcepub 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.
sourcepub fn storage_class(&self) -> Option<&ObjectVersionStorageClass>
pub fn storage_class(&self) -> Option<&ObjectVersionStorageClass>
The class of storage used to store the object.
sourcepub fn version_id(&self) -> Option<&str>
pub fn version_id(&self) -> Option<&str>
Version ID of an object.
sourcepub 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.
sourcepub fn last_modified(&self) -> Option<&DateTime>
pub fn last_modified(&self) -> Option<&DateTime>
Date and time the object was last modified.
sourcepub 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.
source§impl ObjectVersion
impl ObjectVersion
sourcepub fn builder() -> ObjectVersionBuilder
pub fn builder() -> ObjectVersionBuilder
Creates a new builder-style object to manufacture ObjectVersion
.
Trait Implementations§
source§impl Clone for ObjectVersion
impl Clone for ObjectVersion
source§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 moresource§impl Debug for ObjectVersion
impl Debug for ObjectVersion
source§impl PartialEq<ObjectVersion> for ObjectVersion
impl PartialEq<ObjectVersion> for ObjectVersion
source§fn eq(&self, other: &ObjectVersion) -> bool
fn eq(&self, other: &ObjectVersion) -> bool
self
and other
values to be equal, and is used
by ==
.