pub struct GateRecord {
pub schema_version: u32,
pub ts: String,
pub ctx_version: String,
pub source: String,
pub against: String,
pub fail_on: Option<String>,
pub metrics: Value,
pub failed_conditions: Vec<String>,
pub outcome: String,
pub blocking: bool,
pub session_id: Option<String>,
}Expand description
One gate evaluation, serialized as a single JSONL line.
Fields§
§schema_version: u32Line format version (GATE_LOG_SCHEMA_VERSION).
ts: StringEvaluation time, RFC3339 UTC (same shape as the JSON envelope’s
generated_at; see crate::json).
ctx_version: StringThe ctx version that evaluated the gate.
source: StringThe command that evaluated the gate ("score").
against: StringThe git reference the score was computed against.
fail_on: Option<String>The raw --fail-on expression, if any.
metrics: ValueThe scorecard metrics: the same seven-key object the --json
payload emits under metrics.
failed_conditions: Vec<String>Rendered --fail-on conditions that fired (empty on pass).
outcome: String"pass" or "fail".
blocking: boolWhether blocking mode was requested (CTX_GATE_BLOCKING=1).
session_id: Option<String>Claude Code session id (CLAUDE_SESSION_ID), if present.
Trait Implementations§
Source§impl Debug for GateRecord
impl Debug for GateRecord
Auto Trait Implementations§
impl Freeze for GateRecord
impl RefUnwindSafe for GateRecord
impl Send for GateRecord
impl Sync for GateRecord
impl Unpin for GateRecord
impl UnsafeUnpin for GateRecord
impl UnwindSafe for GateRecord
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more