Struct aws_sdk_s3::types::ObjectLockLegalHold
source · #[non_exhaustive]pub struct ObjectLockLegalHold {
pub status: Option<ObjectLockLegalHoldStatus>,
}
Expand description
A legal hold configuration for an object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.status: Option<ObjectLockLegalHoldStatus>
Indicates whether the specified object has a legal hold in place.
Implementations§
source§impl ObjectLockLegalHold
impl ObjectLockLegalHold
sourcepub fn status(&self) -> Option<&ObjectLockLegalHoldStatus>
pub fn status(&self) -> Option<&ObjectLockLegalHoldStatus>
Indicates whether the specified object has a legal hold in place.
source§impl ObjectLockLegalHold
impl ObjectLockLegalHold
sourcepub fn builder() -> ObjectLockLegalHoldBuilder
pub fn builder() -> ObjectLockLegalHoldBuilder
Creates a new builder-style object to manufacture ObjectLockLegalHold
.
Trait Implementations§
source§impl Clone for ObjectLockLegalHold
impl Clone for ObjectLockLegalHold
source§fn clone(&self) -> ObjectLockLegalHold
fn clone(&self) -> ObjectLockLegalHold
Returns a copy 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 ObjectLockLegalHold
impl Debug for ObjectLockLegalHold
source§impl PartialEq<ObjectLockLegalHold> for ObjectLockLegalHold
impl PartialEq<ObjectLockLegalHold> for ObjectLockLegalHold
source§fn eq(&self, other: &ObjectLockLegalHold) -> bool
fn eq(&self, other: &ObjectLockLegalHold) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ObjectLockLegalHold
Auto Trait Implementations§
impl RefUnwindSafe for ObjectLockLegalHold
impl Send for ObjectLockLegalHold
impl Sync for ObjectLockLegalHold
impl Unpin for ObjectLockLegalHold
impl UnwindSafe for ObjectLockLegalHold
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