#[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
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 more
sourceimpl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
impl PartialEq<PolicyAttributeTypeDescription> for PolicyAttributeTypeDescription
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PolicyAttributeTypeDescription) -> bool
fn ne(&self, other: &PolicyAttributeTypeDescription) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more