pub struct ReputationConfig {
pub enabled: bool,
pub malicious: Severity,
pub suspicious: Severity,
}Expand description
How an IP-reputation verdict maps to an anomaly-score severity. No hardcoded points: the
module declares a Severity and the pipeline resolves severity -> points via
[waf.severity_scores] (so the operator tunes whether reputation alone blocks).
Fields§
§enabled: bool§malicious: Severity§suspicious: SeverityTrait Implementations§
Source§impl Clone for ReputationConfig
impl Clone for ReputationConfig
impl Copy for ReputationConfig
Source§impl Debug for ReputationConfig
impl Debug for ReputationConfig
Auto Trait Implementations§
impl Freeze for ReputationConfig
impl RefUnwindSafe for ReputationConfig
impl Send for ReputationConfig
impl Sync for ReputationConfig
impl Unpin for ReputationConfig
impl UnsafeUnpin for ReputationConfig
impl UnwindSafe for ReputationConfig
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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