pub struct TraceRecord {
pub ts: DateTime<Utc>,
pub skill: String,
pub session_id: String,
pub phase: Phase,
pub payload: Value,
}Expand description
One line of trace.jsonl.
Fields§
§ts: DateTime<Utc>Timestamp of the event.
skill: StringSkill name — duplicated on every event so that readers that merge traces from different sessions can still attribute each line.
session_id: StringSession id (ULID).
phase: PhaseEvent phase.
payload: ValueEvent payload. Redacted before writing.
Trait Implementations§
Source§impl Clone for TraceRecord
impl Clone for TraceRecord
Source§fn clone(&self) -> TraceRecord
fn clone(&self) -> TraceRecord
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 TraceRecord
impl Debug for TraceRecord
Source§impl<'de> Deserialize<'de> for TraceRecord
impl<'de> Deserialize<'de> for TraceRecord
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 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