pub struct GateResult {
pub gate_id: String,
pub verdict: Verdict,
pub score: Option<Score>,
pub cost_usd: f64,
pub ms: u64,
pub reason: Option<String>,
pub evidence_ref: Option<String>,
}Expand description
The outcome of running one gate against one attempt (a row in attempts[].gates, §9.1).
Fields§
§gate_id: StringStable, versioned gate identity, e.g. "judge-diff@v2".
verdict: VerdictThe gate’s judgement.
score: Option<Score>Confidence in [0, 1]. Absent when the gate abstained without a score.
cost_usd: f64Marginal USD spent running this gate (0.0 for deterministic gates like a test run).
ms: u64Wall-clock milliseconds the gate took.
reason: Option<String>Machine-readable reason, primarily for abstains (e.g. "provider_error", "timeout").
evidence_ref: Option<String>Opaque pointer to an evidence blob (judge rationale) stored separately with its own retention clock (§9.2) — never the rationale inline.
Implementations§
Source§impl GateResult
impl GateResult
Trait Implementations§
Source§impl Clone for GateResult
impl Clone for GateResult
Source§fn clone(&self) -> GateResult
fn clone(&self) -> GateResult
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 GateResult
impl Debug for GateResult
Source§impl<'de> Deserialize<'de> for GateResult
impl<'de> Deserialize<'de> for GateResult
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 GateResult
impl PartialEq for GateResult
Source§impl Serialize for GateResult
impl Serialize for GateResult
impl StructuralPartialEq for GateResult
Auto Trait Implementations§
impl Freeze for GateResult
impl RefUnwindSafe for GateResult
impl Send for GateResult
impl Sync for GateResult
impl Unpin for GateResult
impl UnsafeUnpin for GateResult
impl UnwindSafe for GateResult
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