#[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 for PolicyAttributeTypeDescription
impl PartialEq 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 ==
.impl StructuralPartialEq for PolicyAttributeTypeDescription
Auto Trait Implementations§
impl Freeze for PolicyAttributeTypeDescription
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more