#[non_exhaustive]pub struct PolicyAttributeTypeDescription {
pub attribute_name: Option<String>,
pub attribute_type: Option<String>,
pub description: Option<String>,
pub default_value: Option<String>,
pub cardinality: Option<String>,
}
Expand description
Information about a policy attribute type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attribute_name: Option<String>
The name of the attribute.
attribute_type: Option<String>
The type of the attribute. For example, Boolean
or Integer
.
description: Option<String>
A description of the attribute.
default_value: Option<String>
The default value of the attribute, if applicable.
cardinality: Option<String>
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
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() -> PolicyAttributeTypeDescriptionBuilder
pub fn builder() -> PolicyAttributeTypeDescriptionBuilder
Creates a new builder-style object to manufacture PolicyAttributeTypeDescription
.
Trait Implementations§
source§impl Clone for PolicyAttributeTypeDescription
impl Clone for PolicyAttributeTypeDescription
source§fn clone(&self) -> PolicyAttributeTypeDescription
fn clone(&self) -> PolicyAttributeTypeDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
impl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
source§fn eq(&self, other: &PolicyAttributeTypeDescription) -> bool
fn eq(&self, other: &PolicyAttributeTypeDescription) -> bool
self
and other
values to be equal, and is used
by ==
.