#[non_exhaustive]pub struct NoncurrentVersionExpiration { /* private fields */ }
Expand description
The container of the noncurrent version expiration.
Implementations§
source§impl NoncurrentVersionExpiration
impl NoncurrentVersionExpiration
sourcepub fn noncurrent_days(&self) -> i32
pub fn noncurrent_days(&self) -> i32
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide.
source§impl NoncurrentVersionExpiration
impl NoncurrentVersionExpiration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NoncurrentVersionExpiration
.
Examples found in repository?
src/xml_deser.rs (line 5422)
5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444
pub fn deser_structure_crate_model_noncurrent_version_expiration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NoncurrentVersionExpiration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NoncurrentVersionExpiration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("NoncurrentDays") /* NoncurrentDays com.amazonaws.s3control#NoncurrentVersionExpiration$NoncurrentDays */ => {
let var_255 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.s3control#Days`)"))
}
?
)
;
builder = builder.set_noncurrent_days(var_255);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NoncurrentVersionExpiration
impl Clone for NoncurrentVersionExpiration
source§fn clone(&self) -> NoncurrentVersionExpiration
fn clone(&self) -> NoncurrentVersionExpiration
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