#[non_exhaustive]pub struct AssessmentMetadataItem {
pub name: Option<String>,
pub id: Option<String>,
pub compliance_type: Option<String>,
pub status: Option<AssessmentStatus>,
pub roles: Option<Vec<Role>>,
pub delegations: Option<Vec<Delegation>>,
pub creation_time: Option<DateTime>,
pub last_updated: Option<DateTime>,
}Expand description
A metadata object that's associated with an assessment in Audit Manager.
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.name: Option<String>The name of the assessment.
id: Option<String>The unique identifier for the assessment.
compliance_type: Option<String>The name of the compliance standard that's related to the assessment, such as PCI-DSS.
status: Option<AssessmentStatus>The current status of the assessment.
roles: Option<Vec<Role>>The roles that are associated with the assessment.
delegations: Option<Vec<Delegation>>The delegations that are associated with the assessment.
creation_time: Option<DateTime>Specifies when the assessment was created.
last_updated: Option<DateTime>The time of the most recent update.
Implementations§
source§impl AssessmentMetadataItem
impl AssessmentMetadataItem
sourcepub fn compliance_type(&self) -> Option<&str>
pub fn compliance_type(&self) -> Option<&str>
The name of the compliance standard that's related to the assessment, such as PCI-DSS.
sourcepub fn status(&self) -> Option<&AssessmentStatus>
pub fn status(&self) -> Option<&AssessmentStatus>
The current status of the assessment.
sourcepub fn roles(&self) -> &[Role]
pub fn roles(&self) -> &[Role]
The roles that are associated with the assessment.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .roles.is_none().
sourcepub fn delegations(&self) -> &[Delegation]
pub fn delegations(&self) -> &[Delegation]
The delegations that are associated with the assessment.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .delegations.is_none().
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
Specifies when the assessment was created.
sourcepub fn last_updated(&self) -> Option<&DateTime>
pub fn last_updated(&self) -> Option<&DateTime>
The time of the most recent update.
source§impl AssessmentMetadataItem
impl AssessmentMetadataItem
sourcepub fn builder() -> AssessmentMetadataItemBuilder
pub fn builder() -> AssessmentMetadataItemBuilder
Creates a new builder-style object to manufacture AssessmentMetadataItem.
Trait Implementations§
source§impl Clone for AssessmentMetadataItem
impl Clone for AssessmentMetadataItem
source§fn clone(&self) -> AssessmentMetadataItem
fn clone(&self) -> AssessmentMetadataItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AssessmentMetadataItem
impl Debug for AssessmentMetadataItem
source§impl PartialEq for AssessmentMetadataItem
impl PartialEq for AssessmentMetadataItem
source§fn eq(&self, other: &AssessmentMetadataItem) -> bool
fn eq(&self, other: &AssessmentMetadataItem) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssessmentMetadataItem
Auto Trait Implementations§
impl Freeze for AssessmentMetadataItem
impl RefUnwindSafe for AssessmentMetadataItem
impl Send for AssessmentMetadataItem
impl Sync for AssessmentMetadataItem
impl Unpin for AssessmentMetadataItem
impl UnwindSafe for AssessmentMetadataItem
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