pub struct StatObjectResponse { /* private fields */ }Expand description
Response from the stat_object API.
Provides metadata about an object stored in S3 or a compatible service.
Implementations§
Source§impl StatObjectResponse
impl StatObjectResponse
Sourcepub fn size(&self) -> Result<u64, ValidationErr>
pub fn size(&self) -> Result<u64, ValidationErr>
Returns the size of the object (header-value of Content-Length).
Sourcepub fn last_modified(&self) -> Result<Option<UtcTime>, ValidationErr>
pub fn last_modified(&self) -> Result<Option<UtcTime>, ValidationErr>
Returns the last modified time of the object (header-value of Last-Modified).
Sourcepub fn retention_mode(&self) -> Result<Option<RetentionMode>, ValidationErr>
pub fn retention_mode(&self) -> Result<Option<RetentionMode>, ValidationErr>
Returns the retention mode of the object (header-value of x-amz-object-lock-mode).
Sourcepub fn retention_retain_until_date(
&self,
) -> Result<Option<UtcTime>, ValidationErr>
pub fn retention_retain_until_date( &self, ) -> Result<Option<UtcTime>, ValidationErr>
Returns the retention date of the object (header-value of x-amz-object-lock-retain-until-date).
Sourcepub fn legal_hold(&self) -> Result<Option<bool>, ValidationErr>
pub fn legal_hold(&self) -> Result<Option<bool>, ValidationErr>
Returns the legal hold status of the object (header-value of x-amz-object-lock-legal-hold).
Sourcepub fn user_metadata(&self) -> Result<HashMap<String, String>, ValidationErr>
pub fn user_metadata(&self) -> Result<HashMap<String, String>, ValidationErr>
Returns the user-defined metadata of the object (header-value of x-amz-meta-*).
Trait Implementations§
Source§impl Clone for StatObjectResponse
impl Clone for StatObjectResponse
Source§fn clone(&self) -> StatObjectResponse
fn clone(&self) -> StatObjectResponse
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 StatObjectResponse
impl Debug for StatObjectResponse
Source§impl FromS3Response for StatObjectResponse
impl FromS3Response for StatObjectResponse
Source§impl HasBucket for StatObjectResponse
impl HasBucket for StatObjectResponse
Source§fn bucket(&self) -> Option<&BucketName>
fn bucket(&self) -> Option<&BucketName>
Returns the name of the S3 bucket, if set.
Source§impl HasChecksumHeaders for StatObjectResponse
impl HasChecksumHeaders for StatObjectResponse
Source§fn get_checksum(&self, algorithm: ChecksumAlgorithm) -> Option<String>
fn get_checksum(&self, algorithm: ChecksumAlgorithm) -> Option<String>
Extracts the checksum value from response headers for the specified algorithm. Read more
Source§fn checksum_type(&self) -> Option<String>
fn checksum_type(&self) -> Option<String>
Returns the checksum type from response headers. Read more
Source§fn detect_checksum_algorithm(&self) -> Option<ChecksumAlgorithm>
fn detect_checksum_algorithm(&self) -> Option<ChecksumAlgorithm>
Detects which checksum algorithm was used by the server (if any). Read more
Source§impl HasIsDeleteMarker for StatObjectResponse
impl HasIsDeleteMarker for StatObjectResponse
Source§fn is_delete_marker(&self) -> Result<bool, ValidationErr>
fn is_delete_marker(&self) -> Result<bool, ValidationErr>
Returns
true if the object is a delete marker, false otherwise.Source§impl HasObject for StatObjectResponse
impl HasObject for StatObjectResponse
Source§impl HasObjectSize for StatObjectResponse
impl HasObjectSize for StatObjectResponse
Source§fn object_size(&self) -> u64
fn object_size(&self) -> u64
Returns the size of the object in bytes, as specified by the
x-amz-object-size header.Source§impl HasRegion for StatObjectResponse
impl HasRegion for StatObjectResponse
Source§impl HasS3Fields for StatObjectResponse
impl HasS3Fields for StatObjectResponse
Source§impl HasVersion for StatObjectResponse
impl HasVersion for StatObjectResponse
Source§fn version_id(&self) -> Option<VersionId>
fn version_id(&self) -> Option<VersionId>
Returns the version ID of the object (
x-amz-version-id), if versioning is enabled for the bucket.Auto Trait Implementations§
impl !Freeze for StatObjectResponse
impl !RefUnwindSafe for StatObjectResponse
impl Send for StatObjectResponse
impl Sync for StatObjectResponse
impl Unpin for StatObjectResponse
impl UnsafeUnpin for StatObjectResponse
impl !UnwindSafe for StatObjectResponse
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