pub struct LifecycleExpiration {
pub date: Option<String>,
pub days: Option<i64>,
pub expired_object_delete_marker: Option<bool>,
}Expand description
Container for the expiration for the lifecycle of the object.
Fields§
§date: Option<String>Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.
days: Option<i64>Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
expired_object_delete_marker: Option<bool>Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
Trait Implementations§
Source§impl Clone for LifecycleExpiration
impl Clone for LifecycleExpiration
Source§fn clone(&self) -> LifecycleExpiration
fn clone(&self) -> LifecycleExpiration
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 LifecycleExpiration
impl Debug for LifecycleExpiration
Source§impl Default for LifecycleExpiration
impl Default for LifecycleExpiration
Source§fn default() -> LifecycleExpiration
fn default() -> LifecycleExpiration
Returns the “default value” for a type. Read more
Source§impl PartialEq for LifecycleExpiration
impl PartialEq for LifecycleExpiration
impl StructuralPartialEq for LifecycleExpiration
Auto Trait Implementations§
impl Freeze for LifecycleExpiration
impl RefUnwindSafe for LifecycleExpiration
impl Send for LifecycleExpiration
impl Sync for LifecycleExpiration
impl Unpin for LifecycleExpiration
impl UnwindSafe for LifecycleExpiration
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