pub struct ObjectLockConfiguration {
pub object_lock_enabled: String,
pub rule: Option<ObjectLockRule>,
}Expand description
Object representation of
- request XML of
put_object_lock_configurationAPI - response XML of
get_object_lock_configurationAPI.
Fields§
§object_lock_enabled: StringIndicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.
Valid Values: Enabled
Required: No
rule: Option<ObjectLockRule>Trait Implementations§
Source§impl Clone for ObjectLockConfiguration
impl Clone for ObjectLockConfiguration
Source§fn clone(&self) -> ObjectLockConfiguration
fn clone(&self) -> ObjectLockConfiguration
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 ObjectLockConfiguration
impl Debug for ObjectLockConfiguration
Source§impl<'de> Deserialize<'de> for ObjectLockConfiguration
impl<'de> Deserialize<'de> for ObjectLockConfiguration
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 ObjectLockConfiguration
impl RefUnwindSafe for ObjectLockConfiguration
impl Send for ObjectLockConfiguration
impl Sync for ObjectLockConfiguration
impl Unpin for ObjectLockConfiguration
impl UnwindSafe for ObjectLockConfiguration
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