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: i64e_tag: Stringlast_modified: LastModifiedImplementations
sourceimpl<'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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.