pub struct Builder { /* private fields */ }
Expand description
A builder for ValidatePolicyFinding
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn finding_details(self, input: impl Into<String>) -> Self
pub fn finding_details(self, input: impl Into<String>) -> Self
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn set_finding_details(self, input: Option<String>) -> Self
pub fn set_finding_details(self, input: Option<String>) -> Self
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn finding_type(self, input: ValidatePolicyFindingType) -> Self
pub fn finding_type(self, input: ValidatePolicyFindingType) -> Self
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 set_finding_type(self, input: Option<ValidatePolicyFindingType>) -> Self
pub fn set_finding_type(self, input: Option<ValidatePolicyFindingType>) -> Self
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, input: impl Into<String>) -> Self
pub fn issue_code(self, input: impl Into<String>) -> Self
The issue code provides an identifier of the issue associated with this finding.
sourcepub fn set_issue_code(self, input: Option<String>) -> Self
pub fn set_issue_code(self, input: Option<String>) -> Self
The issue code provides an identifier of the issue associated with this finding.
sourcepub fn learn_more_link(self, input: impl Into<String>) -> Self
pub fn learn_more_link(self, input: impl Into<String>) -> Self
A link to additional documentation about the type of finding.
sourcepub fn set_learn_more_link(self, input: Option<String>) -> Self
pub fn set_learn_more_link(self, input: Option<String>) -> Self
A link to additional documentation about the type of finding.
sourcepub fn locations(self, input: Location) -> Self
pub fn locations(self, input: Location) -> Self
Appends an item to locations
.
To override the contents of this collection use set_locations
.
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.
sourcepub fn set_locations(self, input: Option<Vec<Location>>) -> Self
pub fn set_locations(self, input: Option<Vec<Location>>) -> Self
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.
sourcepub fn build(self) -> ValidatePolicyFinding
pub fn build(self) -> ValidatePolicyFinding
Consumes the builder and constructs a ValidatePolicyFinding
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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