pub struct TraceRecord {
pub at: String,
pub agent: String,
pub op: String,
pub kind: &'static str,
pub corr: Option<String>,
pub task_id: Option<String>,
pub bid_id: Option<String>,
pub escrow_id: Option<String>,
pub tx_hash: Option<String>,
pub exit: i32,
pub ok: bool,
pub error: Option<&'static str>,
}Expand description
One redaction-safe trace line. Field order mirrors the AgentTrace vocabulary so server- and CLI-emitted lines align.
Fields§
§at: StringRFC3339 with millis, e.g. 2026-06-29T00:00:00.000Z.
agent: String§op: StringSubcommand path only (e.g. escrow sign). Never argument values.
kind: &'static strAlways cli for CLI-native lines (http is the server’s vocabulary).
corr: Option<String>Server x-request-id; absent on purely local commands / transport fail.
task_id: Option<String>§bid_id: Option<String>§escrow_id: Option<String>§tx_hash: Option<String>§exit: i32§ok: bool§error: Option<&'static str>Stable error category from CmdError::code() (a fixed set of static
strings). Never a message — messages may echo user input.
Trait Implementations§
Source§impl Debug for TraceRecord
impl Debug for TraceRecord
impl Eq for TraceRecord
Source§impl PartialEq for TraceRecord
impl PartialEq for TraceRecord
Source§impl Serialize for TraceRecord
impl Serialize for TraceRecord
impl StructuralPartialEq for TraceRecord
Auto Trait Implementations§
impl Forget for TraceRecord
impl Freeze for TraceRecord
impl Move for TraceRecord
impl RefUnwindSafe for TraceRecord
impl Send for TraceRecord
impl Sync for TraceRecord
impl Unpin for TraceRecord
impl UnsafeUnpin for TraceRecord
impl UnwindSafe for TraceRecord
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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