pub struct Retention {
pub mode: RetentionMode,
pub retain_until_date: UtcTime,
}Expand description
Object representation of request XML of put_object_retention API
and response XML of get_object_retention API.
Fields§
§mode: RetentionModeValid Values: GOVERNANCE | COMPLIANCE
retain_until_date: UtcTimeThe date on which this Object Lock Retention will expire.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Retention
impl<'de> Deserialize<'de> for Retention
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 Retention
impl RefUnwindSafe for Retention
impl Send for Retention
impl Sync for Retention
impl Unpin for Retention
impl UnwindSafe for Retention
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