pub struct Transition {
pub kind: String,
pub category: &'static str,
pub authority: &'static str,
pub agent: Option<String>,
pub session_id: Option<String>,
pub state: String,
pub seq: Option<u64>,
}Expand description
One normalized transition, reshaped from an events.jsonl line. agent is
None for inside_leg_report (that event carries only session_id); the
follow loop resolves it against the registry before emitting.
Fields§
§kind: StringOriginal event kind (passed through for provenance).
category: &'static str"state" (a working/blocked/idle transition) or "exit" (pane/turn end).
Which authority decided the verdict: "hook" or "screen".
agent: Option<String>Agent name when the source event carries it, else None (resolve by sid).
session_id: Option<String>The report’s session id, present only on inside_leg_report.
state: StringNew state label.
seq: Option<u64>Per-source monotonic sequence, when the event carries one.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
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 Transition
impl Debug for Transition
Source§impl PartialEq for Transition
impl PartialEq for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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