pub struct GateCheckRecord {
pub metric: String,
pub passed: bool,
pub observed: Value,
pub required: Value,
pub detail: String,
}Expand description
One gate check, journaled: the core mirror of rusty-eval’s
GateCheck, serde-mapped at the seam so the runtime never links the
eval crate (the workspace’s dependency direction is rusty-eval →
runtime, never the reverse — the
crate::learn::EvaluationThresholds precedent). metric is the
eval metric’s own serde form (snake_case-tagged), carried as a
string so a new eval metric needs no core release to journal.
Fields§
§metric: StringThe check’s metric, in rusty-eval’s serde form.
passed: boolWhether the check passed.
observed: ValueWhat the candidate measured.
required: ValueWhat the policy required.
detail: StringThe check’s explanation — the journaled why, so an audit reads the refusal without re-running the gate.
Trait Implementations§
Source§impl Clone for GateCheckRecord
impl Clone for GateCheckRecord
Source§impl Debug for GateCheckRecord
impl Debug for GateCheckRecord
Source§impl<'de> Deserialize<'de> for GateCheckRecord
impl<'de> Deserialize<'de> for GateCheckRecord
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 GateCheckRecord
impl PartialEq for GateCheckRecord
Source§impl Serialize for GateCheckRecord
impl Serialize for GateCheckRecord
impl StructuralPartialEq for GateCheckRecord
Auto Trait Implementations§
impl Freeze for GateCheckRecord
impl RefUnwindSafe for GateCheckRecord
impl Send for GateCheckRecord
impl Sync for GateCheckRecord
impl Unpin for GateCheckRecord
impl UnsafeUnpin for GateCheckRecord
impl UnwindSafe for GateCheckRecord
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