pub struct DetectorSignalV1 {
pub detector: DetectorRefV1,
pub category: DetectorCategoryV1,
pub severity: SeverityV1,
pub confidence_milli: Option<u16>,
pub calibrated: bool,
pub evidence_count: u32,
pub coverage: DetectorCoverageV1,
pub status: DetectorStatusV1,
pub latency_us: u64,
}Expand description
One detector’s normalised result. Carries counts only — never the matched value — so telemetry and receipts cannot leak what was detected.
Fields§
§detector: DetectorRefV1§category: DetectorCategoryV1§severity: SeverityV1§confidence_milli: Option<u16>Confidence in thousandths. Not a probability unless calibrated.
calibrated: bool§evidence_count: u32§coverage: DetectorCoverageV1§status: DetectorStatusV1§latency_us: u64Implementations§
Source§impl DetectorSignalV1
impl DetectorSignalV1
pub fn validate(&self) -> Result<(), ValidationError>
Sourcepub fn satisfies_requirement(&self) -> bool
pub fn satisfies_requirement(&self) -> bool
Whether this signal may satisfy a required detector: it ran to completion over the whole object.
Trait Implementations§
Source§impl Clone for DetectorSignalV1
impl Clone for DetectorSignalV1
Source§impl Debug for DetectorSignalV1
impl Debug for DetectorSignalV1
Source§impl<'de> Deserialize<'de> for DetectorSignalV1
impl<'de> Deserialize<'de> for DetectorSignalV1
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
impl Eq for DetectorSignalV1
Source§impl PartialEq for DetectorSignalV1
impl PartialEq for DetectorSignalV1
Source§impl Serialize for DetectorSignalV1
impl Serialize for DetectorSignalV1
impl StructuralPartialEq for DetectorSignalV1
Auto Trait Implementations§
impl Forget for DetectorSignalV1
impl Freeze for DetectorSignalV1
impl Move for DetectorSignalV1
impl RefUnwindSafe for DetectorSignalV1
impl Send for DetectorSignalV1
impl Sync for DetectorSignalV1
impl Unpin for DetectorSignalV1
impl UnsafeUnpin for DetectorSignalV1
impl UnwindSafe for DetectorSignalV1
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