#[non_exhaustive]pub struct ValidatePolicyFinding {
pub finding_details: String,
pub finding_type: ValidatePolicyFindingType,
pub issue_code: String,
pub learn_more_link: String,
pub locations: 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: StringA localized message that explains the finding and provides guidance on how to address it.
finding_type: ValidatePolicyFindingTypeThe 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: StringThe issue code provides an identifier of the issue associated with this finding.
learn_more_link: StringA link to additional documentation about the type of finding.
locations: 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§
source§impl ValidatePolicyFinding
impl ValidatePolicyFinding
sourcepub fn finding_details(&self) -> &str
pub fn finding_details(&self) -> &str
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn finding_type(&self) -> &ValidatePolicyFindingType
pub fn finding_type(&self) -> &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) -> &str
pub fn issue_code(&self) -> &str
The issue code provides an identifier of the issue associated with this finding.
sourcepub fn learn_more_link(&self) -> &str
pub fn learn_more_link(&self) -> &str
A link to additional documentation about the type of finding.
source§impl ValidatePolicyFinding
impl ValidatePolicyFinding
sourcepub fn builder() -> ValidatePolicyFindingBuilder
pub fn builder() -> ValidatePolicyFindingBuilder
Creates a new builder-style object to manufacture ValidatePolicyFinding.
Trait Implementations§
source§impl Clone for ValidatePolicyFinding
impl Clone for ValidatePolicyFinding
source§fn clone(&self) -> ValidatePolicyFinding
fn clone(&self) -> ValidatePolicyFinding
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ValidatePolicyFinding
impl Debug for ValidatePolicyFinding
source§impl PartialEq for ValidatePolicyFinding
impl PartialEq for ValidatePolicyFinding
source§fn eq(&self, other: &ValidatePolicyFinding) -> bool
fn eq(&self, other: &ValidatePolicyFinding) -> bool
self and other values to be equal, and is used
by ==.