pub struct FprDriftAlert {
pub category: String,
pub baseline_fpr: f64,
pub current_fpr: f64,
pub deviation: f64,
pub window_size: usize,
pub detected_at: Instant,
}Expand description
Alert produced when FPR drift is detected for a category.
Fields§
§category: StringDetection category that drifted.
baseline_fpr: f64Expected baseline FPR for this category.
current_fpr: f64Observed FPR in the current window.
deviation: f64Absolute deviation: |current_fpr - baseline_fpr|.
window_size: usizeNumber of samples in the current window.
detected_at: InstantWhen the drift was detected.
Trait Implementations§
Source§impl Clone for FprDriftAlert
impl Clone for FprDriftAlert
Source§fn clone(&self) -> FprDriftAlert
fn clone(&self) -> FprDriftAlert
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 moreAuto Trait Implementations§
impl Freeze for FprDriftAlert
impl RefUnwindSafe for FprDriftAlert
impl Send for FprDriftAlert
impl Sync for FprDriftAlert
impl Unpin for FprDriftAlert
impl UnsafeUnpin for FprDriftAlert
impl UnwindSafe for FprDriftAlert
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