#[non_exhaustive]pub struct ValidatePolicyFinding {
pub finding_details: Option<String>,
pub finding_type: Option<ValidatePolicyFindingType>,
pub issue_code: Option<String>,
pub learn_more_link: Option<String>,
pub locations: Option<Vec<Location>>,
}
Expand description
A finding in a policy. Each finding is an actionable recommendation that can be used to improve the policy.
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.finding_details: Option<String>
A localized message that explains the finding and provides guidance on how to address it.
finding_type: Option<ValidatePolicyFindingType>
The impact of the finding.
Security warnings report when the policy allows access that we consider overly permissive.
Errors report when a part of the policy is not functional.
Warnings report non-security issues when a policy does not conform to policy writing best practices.
Suggestions recommend stylistic improvements in the policy that do not impact access.
issue_code: Option<String>
The issue code provides an identifier of the issue associated with this finding.
learn_more_link: Option<String>
A link to additional documentation about the type of finding.
locations: Option<Vec<Location>>
The list of locations in the policy document that are related to the finding. The issue code provides a summary of an issue identified by the finding.
Implementations
sourceimpl ValidatePolicyFinding
impl ValidatePolicyFinding
sourcepub fn finding_details(&self) -> Option<&str>
pub fn finding_details(&self) -> Option<&str>
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn finding_type(&self) -> Option<&ValidatePolicyFindingType>
pub fn finding_type(&self) -> Option<&ValidatePolicyFindingType>
The impact of the finding.
Security warnings report when the policy allows access that we consider overly permissive.
Errors report when a part of the policy is not functional.
Warnings report non-security issues when a policy does not conform to policy writing best practices.
Suggestions recommend stylistic improvements in the policy that do not impact access.
sourcepub fn issue_code(&self) -> Option<&str>
pub fn issue_code(&self) -> Option<&str>
The issue code provides an identifier of the issue associated with this finding.
sourcepub fn learn_more_link(&self) -> Option<&str>
pub fn learn_more_link(&self) -> Option<&str>
A link to additional documentation about the type of finding.
sourceimpl ValidatePolicyFinding
impl ValidatePolicyFinding
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ValidatePolicyFinding
.
Trait Implementations
sourceimpl Clone for ValidatePolicyFinding
impl Clone for ValidatePolicyFinding
sourcefn clone(&self) -> ValidatePolicyFinding
fn clone(&self) -> ValidatePolicyFinding
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 Debug for ValidatePolicyFinding
impl Debug for ValidatePolicyFinding
sourceimpl PartialEq<ValidatePolicyFinding> for ValidatePolicyFinding
impl PartialEq<ValidatePolicyFinding> for ValidatePolicyFinding
sourcefn eq(&self, other: &ValidatePolicyFinding) -> bool
fn eq(&self, other: &ValidatePolicyFinding) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ValidatePolicyFinding) -> bool
fn ne(&self, other: &ValidatePolicyFinding) -> bool
This method tests for !=
.
impl StructuralPartialEq for ValidatePolicyFinding
Auto Trait Implementations
impl RefUnwindSafe for ValidatePolicyFinding
impl Send for ValidatePolicyFinding
impl Sync for ValidatePolicyFinding
impl Unpin for ValidatePolicyFinding
impl UnwindSafe for ValidatePolicyFinding
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