pub struct Detection {
pub signals: Vec<Signal>,
pub layer_scores: LayerScores,
pub score: f32,
pub truncated: bool,
}Expand description
Output of a single detection run.
Fields§
§signals: Vec<Signal>Stable-ID signals that fired across all layers.
layer_scores: LayerScoresPer-layer raw/clamped scores before blending.
score: f32Final blended score in [0.0, 1.0].
truncated: boolWhether the raw input was truncated at the scan budget.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Detection
impl<'de> Deserialize<'de> for Detection
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
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
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