pub struct InspectLog {
pub status: String,
pub eval: InspectEvalSpec,
pub results: InspectResults,
pub samples: Vec<InspectSample>,
}Expand description
The minimal Inspect EvalLog shape this adapter reads. Every field is
optional/tolerant so an evolving Inspect schema still parses.
Fields§
§status: String§eval: InspectEvalSpec§results: InspectResults§samples: Vec<InspectSample>Implementations§
Source§impl InspectLog
impl InspectLog
Sourcepub fn scorer_name(&self) -> String
pub fn scorer_name(&self) -> String
The scorer name — the tool that produced the judgment. Prefers the
results score’s scorer, then its name, then the eval’s declared
scorer. "scorer" is the neutral fallback.
Sourcepub fn headline_value(&self) -> f64
pub fn headline_value(&self) -> f64
The headline metric value: the first score’s accuracy, else its first
metric, else 0.0. This is what --threshold compares against.
Trait Implementations§
Source§impl Clone for InspectLog
impl Clone for InspectLog
Source§fn clone(&self) -> InspectLog
fn clone(&self) -> InspectLog
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 InspectLog
impl Debug for InspectLog
Source§impl<'de> Deserialize<'de> for InspectLog
impl<'de> Deserialize<'de> for InspectLog
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 InspectLog
impl RefUnwindSafe for InspectLog
impl Send for InspectLog
impl Sync for InspectLog
impl Unpin for InspectLog
impl UnsafeUnpin for InspectLog
impl UnwindSafe for InspectLog
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