Struct aws_sdk_ec2::model::AttributeValue
source · #[non_exhaustive]pub struct AttributeValue { /* private fields */ }
Expand description
Describes a value for a resource attribute that is a String.
Implementations§
source§impl AttributeValue
impl AttributeValue
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AttributeValue
.
Examples found in repository?
src/xml_deser.rs (line 33587)
33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 33605 33606 33607
pub fn deser_structure_crate_model_attribute_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AttributeValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AttributeValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("value") /* Value com.amazonaws.ec2#AttributeValue$Value */ => {
let var_1476 =
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_1476);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AttributeValue
impl Clone for AttributeValue
source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
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