Struct aws_sdk_s3::model::ObjectVersion
source · [−]#[non_exhaustive]pub struct ObjectVersion {
pub e_tag: Option<String>,
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>,
}
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.
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.
Implementations
sourceimpl 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 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.
sourceimpl ObjectVersion
impl ObjectVersion
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ObjectVersion
Trait Implementations
sourceimpl Clone for ObjectVersion
impl Clone for ObjectVersion
sourcefn clone(&self) -> ObjectVersion
fn clone(&self) -> ObjectVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ObjectVersion
impl Debug for ObjectVersion
sourceimpl PartialEq<ObjectVersion> for ObjectVersion
impl PartialEq<ObjectVersion> for ObjectVersion
sourcefn eq(&self, other: &ObjectVersion) -> bool
fn eq(&self, other: &ObjectVersion) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjectVersion) -> bool
fn ne(&self, other: &ObjectVersion) -> bool
This method tests for !=
.
impl StructuralPartialEq for ObjectVersion
Auto Trait Implementations
impl RefUnwindSafe for ObjectVersion
impl Send for ObjectVersion
impl Sync for ObjectVersion
impl Unpin for ObjectVersion
impl UnwindSafe for ObjectVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more