Struct aws_sdk_s3::model::ObjectLockLegalHold
source · #[non_exhaustive]pub struct ObjectLockLegalHold { /* private fields */ }
Expand description
A legal hold configuration for an object.
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() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ObjectLockLegalHold
.
Examples found in repository?
src/xml_deser.rs (line 5054)
5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075
pub fn deser_structure_crate_model_object_lock_legal_hold(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ObjectLockLegalHold, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ObjectLockLegalHold::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#ObjectLockLegalHold$Status */ => {
let var_286 =
Some(
Result::<crate::model::ObjectLockLegalHoldStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ObjectLockLegalHoldStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_286);
}
,
_ => {}
}
}
Ok(builder.build())
}
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 more