#[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
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.
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

A localized message that explains the finding and provides guidance on how to address it.

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.

The issue code provides an identifier of the issue associated with this finding.

A link to additional documentation about the type of finding.

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.

Creates a new builder-style object to manufacture ValidatePolicyFinding.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more