Struct aws_sdk_s3control::model::StorageLensTag
source · #[non_exhaustive]pub struct StorageLensTag { /* private fields */ }
Expand description
Implementations§
source§impl StorageLensTag
impl StorageLensTag
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StorageLensTag
.
Examples found in repository?
src/xml_deser.rs (line 3834)
3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867
pub fn deser_structure_crate_model_storage_lens_tag(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageLensTag, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageLensTag::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Key") /* Key com.amazonaws.s3control#StorageLensTag$Key */ => {
let var_165 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_key(var_165);
}
,
s if s.matches("Value") /* Value com.amazonaws.s3control#StorageLensTag$Value */ => {
let var_166 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_value(var_166);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for StorageLensTag
impl Clone for StorageLensTag
source§fn clone(&self) -> StorageLensTag
fn clone(&self) -> StorageLensTag
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