pub struct DefaultRetention {
pub days: Option<usize>,
pub mode: RetentionMode,
pub years: Option<usize>,
}Expand description
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
Note
- The DefaultRetention settings require both a
modeand aperiod. - The DefaultRetention period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.
Fields§
§days: Option<usize>§mode: RetentionMode§years: Option<usize>Trait Implementations§
Source§impl Clone for DefaultRetention
impl Clone for DefaultRetention
Source§fn clone(&self) -> DefaultRetention
fn clone(&self) -> DefaultRetention
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 DefaultRetention
impl Debug for DefaultRetention
Source§impl Default for DefaultRetention
impl Default for DefaultRetention
Source§fn default() -> DefaultRetention
fn default() -> DefaultRetention
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DefaultRetention
impl<'de> Deserialize<'de> for DefaultRetention
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DefaultRetention
impl RefUnwindSafe for DefaultRetention
impl Send for DefaultRetention
impl Sync for DefaultRetention
impl Unpin for DefaultRetention
impl UnwindSafe for DefaultRetention
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