pub struct SessionSummary {
pub ulid: String,
pub started_at_ms: i64,
pub ended_at_ms: Option<i64>,
pub engine_base_url: Option<String>,
pub cli_version: String,
pub parent_ulid: Option<String>,
pub n_events: i64,
}Expand description
One session row surfaced to the dispatcher. Minimal by design:
everything beyond what /sessions renders is looked up on
demand through SessionSource::list_events.
Fields§
§ulid: StringStable public identifier. What /resume <arg> takes as
input and /sessions shows first.
started_at_ms: i64Epoch milliseconds of started_at. Callers format for
display; keeping it as a raw integer means the trait is
chrono-free.
ended_at_ms: Option<i64>Epoch milliseconds of ended_at, or None if the session
was interrupted (crash, kill -9). A missing ended_at is
load-bearing — it tells the operator a session did not
wrap cleanly, which is information they need when deciding
whether to /resume or /fork.
engine_base_url: Option<String>Engine base URL at session start. Surfaced so the operator can spot cross-environment mismatches (“why is this resuming from a paper-trading URL?”) before replaying.
cli_version: StringCLI version string at session start. Same rationale as
engine_base_url: out-of-date sessions produce subtle
replay surprises and the operator deserves a heads-up.
parent_ulid: Option<String>Parent ulid when this session was created via /fork.
Rendered as a parent:<ulid> tag in the /sessions list.
n_events: i64Number of events in the session. -1 means the impl
could not count cheaply; renderers should omit the count
rather than show a lying zero.
Trait Implementations§
Source§impl Clone for SessionSummary
impl Clone for SessionSummary
Source§fn clone(&self) -> SessionSummary
fn clone(&self) -> SessionSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more