#[non_exhaustive]pub struct PolicyAttributeDescription { /* private fields */ }
Expand description
Information about a policy attribute.
Implementations§
source§impl PolicyAttributeDescription
impl PolicyAttributeDescription
sourcepub fn attribute_name(&self) -> Option<&str>
pub fn attribute_name(&self) -> Option<&str>
The name of the attribute.
sourcepub fn attribute_value(&self) -> Option<&str>
pub fn attribute_value(&self) -> Option<&str>
The value of the attribute.
source§impl PolicyAttributeDescription
impl PolicyAttributeDescription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PolicyAttributeDescription
.
Examples found in repository?
src/xml_deser.rs (line 2906)
2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939
pub fn deser_structure_crate_model_policy_attribute_description(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PolicyAttributeDescription, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PolicyAttributeDescription::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("AttributeName") /* AttributeName com.amazonaws.elasticloadbalancing#PolicyAttributeDescription$AttributeName */ => {
let var_99 =
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_name(var_99);
}
,
s if s.matches("AttributeValue") /* AttributeValue com.amazonaws.elasticloadbalancing#PolicyAttributeDescription$AttributeValue */ => {
let var_100 =
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_100);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PolicyAttributeDescription
impl Clone for PolicyAttributeDescription
source§fn clone(&self) -> PolicyAttributeDescription
fn clone(&self) -> PolicyAttributeDescription
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