pub struct ModelReport {
pub available: bool,
pub score: f64,
pub flagged_windows: Vec<FlaggedWindow>,
}Expand description
Result of the hosted model detector for one document.
available = false means the model endpoint was unreachable and this leg was
skipped (fail-open) — score is then 0.0 and flagged_windows empty.
Fields§
§available: boolWhether the model detector actually ran (false ⇒ skipped/unreachable).
score: f64Max malicious probability across windows, 0.0..=1.0 (0 when unavailable).
flagged_windows: Vec<FlaggedWindow>Per-window detail for windows whose score met the model threshold.
Trait Implementations§
Source§impl Clone for ModelReport
impl Clone for ModelReport
Source§fn clone(&self) -> ModelReport
fn clone(&self) -> ModelReport
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 ModelReport
impl Debug for ModelReport
Source§impl Default for ModelReport
impl Default for ModelReport
Source§fn default() -> ModelReport
fn default() -> ModelReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelReport
impl<'de> Deserialize<'de> for ModelReport
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 ModelReport
impl PartialEq for ModelReport
Source§fn eq(&self, other: &ModelReport) -> bool
fn eq(&self, other: &ModelReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelReport
impl Serialize for ModelReport
impl StructuralPartialEq for ModelReport
Auto Trait Implementations§
impl Freeze for ModelReport
impl RefUnwindSafe for ModelReport
impl Send for ModelReport
impl Sync for ModelReport
impl Unpin for ModelReport
impl UnsafeUnpin for ModelReport
impl UnwindSafe for ModelReport
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