#[non_exhaustive]pub struct PolicyAttributeTypeDescription { /* private fields */ }
Expand description
Information about a policy attribute type.
Implementations§
source§impl PolicyAttributeTypeDescription
impl PolicyAttributeTypeDescription
sourcepub fn attribute_name(&self) -> Option<&str>
pub fn attribute_name(&self) -> Option<&str>
The name of the attribute.
sourcepub fn attribute_type(&self) -> Option<&str>
pub fn attribute_type(&self) -> Option<&str>
The type of the attribute. For example, Boolean
or Integer
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the attribute.
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value of the attribute, if applicable.
sourcepub fn cardinality(&self) -> Option<&str>
pub fn cardinality(&self) -> Option<&str>
The cardinality of the attribute.
Valid values:
-
ONE(1) : Single value required
-
ZERO_OR_ONE(0..1) : Up to one value is allowed
-
ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
-
ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
source§impl PolicyAttributeTypeDescription
impl PolicyAttributeTypeDescription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PolicyAttributeTypeDescription
.
Examples found in repository?
src/xml_deser.rs (line 2945)
2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017
pub fn deser_structure_crate_model_policy_attribute_type_description(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PolicyAttributeTypeDescription, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PolicyAttributeTypeDescription::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("AttributeName") /* AttributeName com.amazonaws.elasticloadbalancing#PolicyAttributeTypeDescription$AttributeName */ => {
let var_101 =
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_101);
}
,
s if s.matches("AttributeType") /* AttributeType com.amazonaws.elasticloadbalancing#PolicyAttributeTypeDescription$AttributeType */ => {
let var_102 =
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_type(var_102);
}
,
s if s.matches("Description") /* Description com.amazonaws.elasticloadbalancing#PolicyAttributeTypeDescription$Description */ => {
let var_103 =
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_description(var_103);
}
,
s if s.matches("DefaultValue") /* DefaultValue com.amazonaws.elasticloadbalancing#PolicyAttributeTypeDescription$DefaultValue */ => {
let var_104 =
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_default_value(var_104);
}
,
s if s.matches("Cardinality") /* Cardinality com.amazonaws.elasticloadbalancing#PolicyAttributeTypeDescription$Cardinality */ => {
let var_105 =
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_cardinality(var_105);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PolicyAttributeTypeDescription
impl Clone for PolicyAttributeTypeDescription
source§fn clone(&self) -> PolicyAttributeTypeDescription
fn clone(&self) -> PolicyAttributeTypeDescription
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