pub struct ThresholdOverrides {
pub strict: Option<ThresholdTuple>,
pub balanced: Option<ThresholdTuple>,
pub permissive: Option<ThresholdTuple>,
}Expand description
Per-sensitivity threshold overrides.
Each Some(...) variant replaces the built-in tuple for that
sensitivity; None preserves built-in behavior. Loosening a
threshold weakens detection and is the operator’s responsibility.
Fields§
§strict: Option<ThresholdTuple>Override for Sensitivity::Strict.
balanced: Option<ThresholdTuple>Override for Sensitivity::Balanced.
permissive: Option<ThresholdTuple>Override for Sensitivity::Permissive.
Trait Implementations§
Source§impl Clone for ThresholdOverrides
impl Clone for ThresholdOverrides
Source§fn clone(&self) -> ThresholdOverrides
fn clone(&self) -> ThresholdOverrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThresholdOverrides
impl Debug for ThresholdOverrides
Source§impl Default for ThresholdOverrides
impl Default for ThresholdOverrides
Source§fn default() -> ThresholdOverrides
fn default() -> ThresholdOverrides
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThresholdOverrides
impl<'de> Deserialize<'de> for ThresholdOverrides
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThresholdOverrides
impl PartialEq for ThresholdOverrides
Source§impl Serialize for ThresholdOverrides
impl Serialize for ThresholdOverrides
impl StructuralPartialEq for ThresholdOverrides
Auto Trait Implementations§
impl Freeze for ThresholdOverrides
impl RefUnwindSafe for ThresholdOverrides
impl Send for ThresholdOverrides
impl Sync for ThresholdOverrides
impl Unpin for ThresholdOverrides
impl UnsafeUnpin for ThresholdOverrides
impl UnwindSafe for ThresholdOverrides
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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