#[non_exhaustive]pub struct ThreatOverride {
pub threat_id: String,
pub type: ThreatType,
pub action: ThreatAction,
/* private fields */
}Expand description
Defines what action to take for a specific threat_id match.
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.threat_id: StringRequired. Vendor-specific ID of a threat to override.
type: ThreatTypeOutput only. Type of the threat (read only).
action: ThreatActionRequired. Threat action override. For some threat types, only a subset of actions applies.
Implementations§
Source§impl ThreatOverride
impl ThreatOverride
Sourcepub fn set_threat_id<T: Into<String>>(self, v: T) -> Self
pub fn set_threat_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_type<T: Into<ThreatType>>(self, v: T) -> Self
pub fn set_type<T: Into<ThreatType>>(self, v: T) -> Self
Sourcepub fn set_action<T: Into<ThreatAction>>(self, v: T) -> Self
pub fn set_action<T: Into<ThreatAction>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ThreatOverride
impl Clone for ThreatOverride
Source§fn clone(&self) -> ThreatOverride
fn clone(&self) -> ThreatOverride
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreatOverride
impl Debug for ThreatOverride
Source§impl Default for ThreatOverride
impl Default for ThreatOverride
Source§fn default() -> ThreatOverride
fn default() -> ThreatOverride
Returns the “default value” for a type. Read more
Source§impl Message for ThreatOverride
impl Message for ThreatOverride
Source§impl PartialEq for ThreatOverride
impl PartialEq for ThreatOverride
impl StructuralPartialEq for ThreatOverride
Auto Trait Implementations§
impl Freeze for ThreatOverride
impl RefUnwindSafe for ThreatOverride
impl Send for ThreatOverride
impl Sync for ThreatOverride
impl Unpin for ThreatOverride
impl UnsafeUnpin for ThreatOverride
impl UnwindSafe for ThreatOverride
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
Mutably borrows from an owned value. Read more