Struct aws_sdk_s3::types::Object
source · #[non_exhaustive]pub struct Object { /* private fields */ }
Expand description
An object consists of data and its descriptive metadata.
Implementations§
source§impl Object
impl Object
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
The name that you assign to an object. You use the object key to retrieve the object.
sourcepub fn last_modified(&self) -> Option<&DateTime>
pub fn last_modified(&self) -> Option<&DateTime>
Creation date of the object.
sourcepub fn e_tag(&self) -> Option<&str>
pub fn e_tag(&self) -> Option<&str>
The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the Amazon Web Services Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
-
If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption. If an object is larger than 16 MB, the Amazon Web Services Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest.
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<&ObjectStorageClass>
pub fn storage_class(&self) -> Option<&ObjectStorageClass>
The class of storage used to store the object.