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

§related_findings: Option<Vec<RelatedFinding>>

The rule action updates the RelatedFindings field of a finding.

Implementations§

source§

impl AutomationRulesFindingFieldsUpdate

source

pub fn note(&self) -> Option<&NoteUpdate>

The updated note.

source

pub fn severity(&self) -> Option<&SeverityUpdate>

Updates to the severity information for a finding.

source

pub fn verification_state(&self) -> Option<&VerificationState>

The rule action updates the VerificationState field of a finding.

source

pub fn confidence(&self) -> Option<i32>

The rule action updates the Confidence field of a finding.

source

pub fn criticality(&self) -> Option<i32>

The rule action updates the Criticality field of a finding.

source

pub fn types(&self) -> Option<&[String]>

The rule action updates the Types field of a finding.

source

pub fn user_defined_fields(&self) -> Option<&HashMap<String, String>>

The rule action updates the UserDefinedFields field of a finding.

source

pub fn workflow(&self) -> Option<&WorkflowUpdate>

Used to update information about the investigation into the finding.

source

pub fn related_findings(&self) -> Option<&[RelatedFinding]>

The rule action updates the RelatedFindings field of a finding.

source§

impl AutomationRulesFindingFieldsUpdate

source

pub fn builder() -> AutomationRulesFindingFieldsUpdateBuilder

Creates a new builder-style object to manufacture AutomationRulesFindingFieldsUpdate.

Trait Implementations§

source§

impl Clone for AutomationRulesFindingFieldsUpdate

source§

fn clone(&self) -> AutomationRulesFindingFieldsUpdate

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AutomationRulesFindingFieldsUpdate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for AutomationRulesFindingFieldsUpdate

source§

fn eq(&self, other: &AutomationRulesFindingFieldsUpdate) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for AutomationRulesFindingFieldsUpdate

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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