Struct aws_sdk_s3::types::RestoreStatus
source · #[non_exhaustive]pub struct RestoreStatus {
pub is_restore_in_progress: Option<bool>,
pub restore_expiry_date: Option<DateTime>,
}
Expand description
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
This functionality is not supported for directory buckets. Only the S3 Express One Zone storage class is supported by directory buckets to store objects.
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.is_restore_in_progress: Option<bool>
Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value TRUE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="true"
If the object restoration has completed, the header returns the value FALSE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
If the object hasn't been restored, there is no header response.
restore_expiry_date: Option<DateTime>
Indicates when the restored copy will expire. This value is populated only if the object has already been restored. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
Implementations§
source§impl RestoreStatus
impl RestoreStatus
sourcepub fn is_restore_in_progress(&self) -> Option<bool>
pub fn is_restore_in_progress(&self) -> Option<bool>
Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value TRUE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="true"
If the object restoration has completed, the header returns the value FALSE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
If the object hasn't been restored, there is no header response.
sourcepub fn restore_expiry_date(&self) -> Option<&DateTime>
pub fn restore_expiry_date(&self) -> Option<&DateTime>
Indicates when the restored copy will expire. This value is populated only if the object has already been restored. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
source§impl RestoreStatus
impl RestoreStatus
sourcepub fn builder() -> RestoreStatusBuilder
pub fn builder() -> RestoreStatusBuilder
Creates a new builder-style object to manufacture RestoreStatus
.
Trait Implementations§
source§impl Clone for RestoreStatus
impl Clone for RestoreStatus
source§fn clone(&self) -> RestoreStatus
fn clone(&self) -> RestoreStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RestoreStatus
impl Debug for RestoreStatus
source§impl PartialEq for RestoreStatus
impl PartialEq for RestoreStatus
impl StructuralPartialEq for RestoreStatus
Auto Trait Implementations§
impl Freeze for RestoreStatus
impl RefUnwindSafe for RestoreStatus
impl Send for RestoreStatus
impl Sync for RestoreStatus
impl Unpin for RestoreStatus
impl UnwindSafe for RestoreStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)