pub struct ScanReport {
pub detectors_run: Vec<String>,
pub pattern: PatternResult,
pub model: Option<ModelReport>,
pub blended_score: f64,
pub reject_threshold: f64,
pub verdict: Verdict,
}Expand description
Full breakdown of one document’s scan.
Carries both detector legs, the blended score, the threshold in force, and the
verdict. Returned verbatim by the admin score endpoint and used to assemble
the ingest rejection detail.
Fields§
§detectors_run: Vec<String>Which detectors actually ran ("pattern", "model").
pattern: PatternResultLocal pattern-detector leg.
model: Option<ModelReport>Hosted model-detector leg (absent when the model was not requested).
blended_score: f64Weighted blend of the two legs, 0.0..=1.0.
reject_threshold: f64Reject threshold the blend was compared against.
verdict: VerdictFinal verdict.
Trait Implementations§
Source§impl Clone for ScanReport
impl Clone for ScanReport
Source§fn clone(&self) -> ScanReport
fn clone(&self) -> ScanReport
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 ScanReport
impl Debug for ScanReport
Source§impl<'de> Deserialize<'de> for ScanReport
impl<'de> Deserialize<'de> for ScanReport
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 ScanReport
impl PartialEq for ScanReport
Source§fn eq(&self, other: &ScanReport) -> bool
fn eq(&self, other: &ScanReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScanReport
impl Serialize for ScanReport
impl StructuralPartialEq for ScanReport
Auto Trait Implementations§
impl Freeze for ScanReport
impl RefUnwindSafe for ScanReport
impl Send for ScanReport
impl Sync for ScanReport
impl Unpin for ScanReport
impl UnsafeUnpin for ScanReport
impl UnwindSafe for ScanReport
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