Struct aws_sdk_ec2::model::AccountAttributeValue
source · #[non_exhaustive]pub struct AccountAttributeValue { /* private fields */ }
Expand description
Describes a value of an account attribute.
Implementations§
source§impl AccountAttributeValue
impl AccountAttributeValue
sourcepub fn attribute_value(&self) -> Option<&str>
pub fn attribute_value(&self) -> Option<&str>
The value of the attribute.
source§impl AccountAttributeValue
impl AccountAttributeValue
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AccountAttributeValue
.
Examples found in repository?
src/xml_deser.rs (line 64806)
64802 64803 64804 64805 64806 64807 64808 64809 64810 64811 64812 64813 64814 64815 64816 64817 64818 64819 64820 64821 64822 64823 64824 64825 64826
pub fn deser_structure_crate_model_account_attribute_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccountAttributeValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AccountAttributeValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("attributeValue") /* AttributeValue com.amazonaws.ec2#AccountAttributeValue$AttributeValue */ => {
let var_3196 =
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_attribute_value(var_3196);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AccountAttributeValue
impl Clone for AccountAttributeValue
source§fn clone(&self) -> AccountAttributeValue
fn clone(&self) -> AccountAttributeValue
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