#[non_exhaustive]pub struct SeverityOverride {
pub severity: Severity,
pub action: ThreatAction,
/* private fields */
}Expand description
Defines what action to take for a specific severity 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.severity: SeverityRequired. Severity level to match.
action: ThreatActionRequired. Threat action override.
Implementations§
Source§impl SeverityOverride
impl SeverityOverride
pub fn new() -> Self
Sourcepub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
pub fn set_severity<T: Into<Severity>>(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 SeverityOverride
impl Clone for SeverityOverride
Source§fn clone(&self) -> SeverityOverride
fn clone(&self) -> SeverityOverride
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 SeverityOverride
impl Debug for SeverityOverride
Source§impl Default for SeverityOverride
impl Default for SeverityOverride
Source§fn default() -> SeverityOverride
fn default() -> SeverityOverride
Returns the “default value” for a type. Read more
Source§impl Message for SeverityOverride
impl Message for SeverityOverride
Source§impl PartialEq for SeverityOverride
impl PartialEq for SeverityOverride
impl StructuralPartialEq for SeverityOverride
Auto Trait Implementations§
impl Freeze for SeverityOverride
impl RefUnwindSafe for SeverityOverride
impl Send for SeverityOverride
impl Sync for SeverityOverride
impl Unpin for SeverityOverride
impl UnsafeUnpin for SeverityOverride
impl UnwindSafe for SeverityOverride
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