#[non_exhaustive]pub struct PolicyDescription {
pub policy_name: Option<String>,
pub policy_type_name: Option<String>,
pub policy_attribute_descriptions: Option<Vec<PolicyAttributeDescription>>,
}
Expand description
Information about a policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.policy_name: Option<String>
The name of the policy.
policy_type_name: Option<String>
The name of the policy type.
policy_attribute_descriptions: Option<Vec<PolicyAttributeDescription>>
The policy attributes.
Implementations§
source§impl PolicyDescription
impl PolicyDescription
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the policy.
sourcepub fn policy_type_name(&self) -> Option<&str>
pub fn policy_type_name(&self) -> Option<&str>
The name of the policy type.
sourcepub fn policy_attribute_descriptions(&self) -> &[PolicyAttributeDescription]
pub fn policy_attribute_descriptions(&self) -> &[PolicyAttributeDescription]
The policy attributes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .policy_attribute_descriptions.is_none()
.
source§impl PolicyDescription
impl PolicyDescription
sourcepub fn builder() -> PolicyDescriptionBuilder
pub fn builder() -> PolicyDescriptionBuilder
Creates a new builder-style object to manufacture PolicyDescription
.
Trait Implementations§
source§impl Clone for PolicyDescription
impl Clone for PolicyDescription
source§fn clone(&self) -> PolicyDescription
fn clone(&self) -> PolicyDescription
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 Debug for PolicyDescription
impl Debug for PolicyDescription
source§impl PartialEq for PolicyDescription
impl PartialEq for PolicyDescription
source§fn eq(&self, other: &PolicyDescription) -> bool
fn eq(&self, other: &PolicyDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyDescription
Auto Trait Implementations§
impl RefUnwindSafe for PolicyDescription
impl Send for PolicyDescription
impl Sync for PolicyDescription
impl Unpin for PolicyDescription
impl UnwindSafe for PolicyDescription
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
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>
Creates a shared type from an unshared type.