Struct rusoto_s3::DefaultRetention [−][src]
pub struct DefaultRetention {
pub days: Option<i64>,
pub mode: Option<String>,
pub years: Option<i64>,
}Expand description
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
-
The
DefaultRetentionsettings require both a mode and a period. -
The
DefaultRetentionperiod can be eitherDaysorYearsbut you must select one. You cannot specifyDaysandYearsat the same time.
Fields
days: Option<i64>The number of days that you want to specify for the default retention period. Must be used with Mode.
mode: Option<String>The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days or Years.
years: Option<i64>The number of years that you want to specify for the default retention period. Must be used with Mode.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for DefaultRetention
impl Send for DefaultRetention
impl Sync for DefaultRetention
impl Unpin for DefaultRetention
impl UnwindSafe for DefaultRetention
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more