#[non_exhaustive]pub struct AutomationRulesFindingFieldsUpdate {
pub note: Option<NoteUpdate>,
pub severity: Option<SeverityUpdate>,
pub verification_state: Option<VerificationState>,
pub confidence: Option<i32>,
pub criticality: Option<i32>,
pub types: Option<Vec<String>>,
pub user_defined_fields: Option<HashMap<String, String>>,
pub workflow: Option<WorkflowUpdate>,
pub related_findings: Option<Vec<RelatedFinding>>,
}
Expand description
Identifies the finding fields that the automation rule action updates when a finding matches the defined criteria.
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.note: Option<NoteUpdate>
The updated note.
severity: Option<SeverityUpdate>
Updates to the severity information for a finding.
verification_state: Option<VerificationState>
The rule action updates the VerificationState
field of a finding.
confidence: Option<i32>
The rule action updates the Confidence
field of a finding.
criticality: Option<i32>
The rule action updates the Criticality
field of a finding.
types: Option<Vec<String>>
The rule action updates the Types
field of a finding.
user_defined_fields: Option<HashMap<String, String>>
The rule action updates the UserDefinedFields
field of a finding.
workflow: Option<WorkflowUpdate>
Used to update information about the investigation into the finding.
The rule action updates the RelatedFindings
field of a finding.
Implementations§
source§impl AutomationRulesFindingFieldsUpdate
impl AutomationRulesFindingFieldsUpdate
sourcepub fn note(&self) -> Option<&NoteUpdate>
pub fn note(&self) -> Option<&NoteUpdate>
The updated note.
sourcepub fn severity(&self) -> Option<&SeverityUpdate>
pub fn severity(&self) -> Option<&SeverityUpdate>
Updates to the severity information for a finding.
sourcepub fn verification_state(&self) -> Option<&VerificationState>
pub fn verification_state(&self) -> Option<&VerificationState>
The rule action updates the VerificationState
field of a finding.
sourcepub fn confidence(&self) -> Option<i32>
pub fn confidence(&self) -> Option<i32>
The rule action updates the Confidence
field of a finding.
sourcepub fn criticality(&self) -> Option<i32>
pub fn criticality(&self) -> Option<i32>
The rule action updates the Criticality
field of a finding.
sourcepub fn types(&self) -> &[String]
pub fn types(&self) -> &[String]
The rule action updates the Types
field of a finding.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .types.is_none()
.
sourcepub fn user_defined_fields(&self) -> Option<&HashMap<String, String>>
pub fn user_defined_fields(&self) -> Option<&HashMap<String, String>>
The rule action updates the UserDefinedFields
field of a finding.
sourcepub fn workflow(&self) -> Option<&WorkflowUpdate>
pub fn workflow(&self) -> Option<&WorkflowUpdate>
Used to update information about the investigation into the finding.
The rule action updates the RelatedFindings
field of a finding.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .related_findings.is_none()
.
source§impl AutomationRulesFindingFieldsUpdate
impl AutomationRulesFindingFieldsUpdate
sourcepub fn builder() -> AutomationRulesFindingFieldsUpdateBuilder
pub fn builder() -> AutomationRulesFindingFieldsUpdateBuilder
Creates a new builder-style object to manufacture AutomationRulesFindingFieldsUpdate
.
Trait Implementations§
source§impl Clone for AutomationRulesFindingFieldsUpdate
impl Clone for AutomationRulesFindingFieldsUpdate
source§fn clone(&self) -> AutomationRulesFindingFieldsUpdate
fn clone(&self) -> AutomationRulesFindingFieldsUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AutomationRulesFindingFieldsUpdate
impl PartialEq for AutomationRulesFindingFieldsUpdate
source§fn eq(&self, other: &AutomationRulesFindingFieldsUpdate) -> bool
fn eq(&self, other: &AutomationRulesFindingFieldsUpdate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutomationRulesFindingFieldsUpdate
Auto Trait Implementations§
impl Freeze for AutomationRulesFindingFieldsUpdate
impl RefUnwindSafe for AutomationRulesFindingFieldsUpdate
impl Send for AutomationRulesFindingFieldsUpdate
impl Sync for AutomationRulesFindingFieldsUpdate
impl Unpin for AutomationRulesFindingFieldsUpdate
impl UnwindSafe for AutomationRulesFindingFieldsUpdate
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