Struct aws_sdk_s3::types::ObjectLockConfiguration
source · #[non_exhaustive]pub struct ObjectLockConfiguration {
pub object_lock_enabled: Option<ObjectLockEnabled>,
pub rule: Option<ObjectLockRule>,
}
Expand description
The container element for Object Lock configuration parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.object_lock_enabled: Option<ObjectLockEnabled>
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled
when you apply ObjectLockConfiguration
to a bucket.
rule: Option<ObjectLockRule>
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration
to a bucket. Bucket settings require both a mode and a period. The period can be either Days
or Years
but you must select one. You cannot specify Days
and Years
at the same time.
Implementations§
source§impl ObjectLockConfiguration
impl ObjectLockConfiguration
sourcepub fn object_lock_enabled(&self) -> Option<&ObjectLockEnabled>
pub fn object_lock_enabled(&self) -> Option<&ObjectLockEnabled>
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled
when you apply ObjectLockConfiguration
to a bucket.
sourcepub fn rule(&self) -> Option<&ObjectLockRule>
pub fn rule(&self) -> Option<&ObjectLockRule>
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration
to a bucket. Bucket settings require both a mode and a period. The period can be either Days
or Years
but you must select one. You cannot specify Days
and Years
at the same time.
source§impl ObjectLockConfiguration
impl ObjectLockConfiguration
sourcepub fn builder() -> ObjectLockConfigurationBuilder
pub fn builder() -> ObjectLockConfigurationBuilder
Creates a new builder-style object to manufacture ObjectLockConfiguration
.
Trait Implementations§
source§impl Clone for ObjectLockConfiguration
impl Clone for ObjectLockConfiguration
source§fn clone(&self) -> ObjectLockConfiguration
fn clone(&self) -> ObjectLockConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObjectLockConfiguration
impl Debug for ObjectLockConfiguration
source§impl PartialEq for ObjectLockConfiguration
impl PartialEq for ObjectLockConfiguration
impl StructuralPartialEq for ObjectLockConfiguration
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)