pub struct Object<'b> {
pub bucket_key: Present<BucketKey<'b>>,
pub size: i64,
pub e_tag: String,
pub last_modified: LastModified,
}
Expand description
Represents an existing object and its metadata in S3.
Fields§
§bucket_key: Present<BucketKey<'b>>
§size: i64
§e_tag: String
§last_modified: LastModified
Implementations§
source§impl<'b> Object<'b>
impl<'b> Object<'b>
sourcepub fn bucket_key(&self) -> &Present<BucketKey<'b>>
pub fn bucket_key(&self) -> &Present<BucketKey<'b>>
Gets BucketKey pointing to this object.
sourcepub fn unwrap_bucket_key(self) -> Present<BucketKey<'b>>
pub fn unwrap_bucket_key(self) -> Present<BucketKey<'b>>
Unwraps inner BucketKey pointing to this object.
sourcepub fn last_modified(&self) -> &LastModified
pub fn last_modified(&self) -> &LastModified
Gets object last modified time.
Trait Implementations§
source§impl<'b> PartialEq<Object<'b>> for Object<'b>
impl<'b> PartialEq<Object<'b>> for Object<'b>
source§impl<'b> PresentBucketKeyName for Object<'b>
impl<'b> PresentBucketKeyName for Object<'b>
impl<'b> Eq for Object<'b>
impl<'b> StructuralEq for Object<'b>
impl<'b> StructuralPartialEq for Object<'b>
Auto Trait Implementations§
impl<'b> RefUnwindSafe for Object<'b>
impl<'b> Send for Object<'b>
impl<'b> Sync for Object<'b>
impl<'b> Unpin for Object<'b>
impl<'b> UnwindSafe for Object<'b>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.