Struct google_api_proto::google::cloud::securitycenter::v2::MitreAttack
source · pub struct MitreAttack {
pub primary_tactic: i32,
pub primary_techniques: Vec<i32>,
pub additional_tactics: Vec<i32>,
pub additional_techniques: Vec<i32>,
pub version: String,
}
Expand description
MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
Fields§
§primary_tactic: i32
The MITRE ATT&CK tactic most closely represented by this finding, if any.
primary_techniques: Vec<i32>
The MITRE ATT&CK technique most closely represented by this finding, if
any. primary_techniques is a repeated field because there are multiple
levels of MITRE ATT&CK techniques. If the technique most closely
represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS
),
both the sub-technique and its parent technique(s) will be listed (e.g.
SCANNING_IP_BLOCKS
, ACTIVE_SCANNING
).
additional_tactics: Vec<i32>
Additional MITRE ATT&CK tactics related to this finding, if any.
additional_techniques: Vec<i32>
Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.
version: String
The MITRE ATT&CK version referenced by the above fields. E.g. “8”.
Implementations§
source§impl MitreAttack
impl MitreAttack
sourcepub fn primary_tactic(&self) -> Tactic
pub fn primary_tactic(&self) -> Tactic
Returns the enum value of primary_tactic
, or the default if the field is set to an invalid enum value.
sourcepub fn set_primary_tactic(&mut self, value: Tactic)
pub fn set_primary_tactic(&mut self, value: Tactic)
Sets primary_tactic
to the provided enum value.
sourcepub fn primary_techniques(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Technique>>
pub fn primary_techniques( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Technique>>
Returns an iterator which yields the valid enum values contained in primary_techniques
.
sourcepub fn push_primary_techniques(&mut self, value: Technique)
pub fn push_primary_techniques(&mut self, value: Technique)
Appends the provided enum value to primary_techniques
.
sourcepub fn additional_tactics(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Tactic>>
pub fn additional_tactics( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Tactic>>
Returns an iterator which yields the valid enum values contained in additional_tactics
.
sourcepub fn push_additional_tactics(&mut self, value: Tactic)
pub fn push_additional_tactics(&mut self, value: Tactic)
Appends the provided enum value to additional_tactics
.
sourcepub fn additional_techniques(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Technique>>
pub fn additional_techniques( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Technique>>
Returns an iterator which yields the valid enum values contained in additional_techniques
.
sourcepub fn push_additional_techniques(&mut self, value: Technique)
pub fn push_additional_techniques(&mut self, value: Technique)
Appends the provided enum value to additional_techniques
.
Trait Implementations§
source§impl Clone for MitreAttack
impl Clone for MitreAttack
source§fn clone(&self) -> MitreAttack
fn clone(&self) -> MitreAttack
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MitreAttack
impl Debug for MitreAttack
source§impl Default for MitreAttack
impl Default for MitreAttack
source§impl Message for MitreAttack
impl Message for MitreAttack
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MitreAttack
impl PartialEq for MitreAttack
source§fn eq(&self, other: &MitreAttack) -> bool
fn eq(&self, other: &MitreAttack) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MitreAttack
Auto Trait Implementations§
impl Freeze for MitreAttack
impl RefUnwindSafe for MitreAttack
impl Send for MitreAttack
impl Sync for MitreAttack
impl Unpin for MitreAttack
impl UnwindSafe for MitreAttack
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request