#[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() -> 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
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 moresource§impl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
impl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
source§fn eq(&self, other: &PolicyAttributeTypeDescription) -> bool
fn eq(&self, other: &PolicyAttributeTypeDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more