#[non_exhaustive]pub struct PolicyAttributeTypeDescription { /* private fields */ }
Expand description
Information about a policy attribute type.
Implementations
sourceimpl 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
sourceimpl PolicyAttributeTypeDescription
impl PolicyAttributeTypeDescription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PolicyAttributeTypeDescription
.
Trait Implementations
sourceimpl Clone for PolicyAttributeTypeDescription
impl Clone for PolicyAttributeTypeDescription
sourcefn clone(&self) -> PolicyAttributeTypeDescription
fn clone(&self) -> PolicyAttributeTypeDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
impl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
sourcefn eq(&self, other: &PolicyAttributeTypeDescription) -> bool
fn eq(&self, other: &PolicyAttributeTypeDescription) -> bool
impl StructuralPartialEq for PolicyAttributeTypeDescription
Auto Trait Implementations
impl RefUnwindSafe for PolicyAttributeTypeDescription
impl Send for PolicyAttributeTypeDescription
impl Sync for PolicyAttributeTypeDescription
impl Unpin for PolicyAttributeTypeDescription
impl UnwindSafe for PolicyAttributeTypeDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more