#[non_exhaustive]pub struct SessionItem {Show 16 fields
pub auth_subject: String,
pub cwd: String,
pub display_name: String,
pub display_title: String,
pub ended_at: String,
pub harness_id: String,
pub harness_metadata: BTreeMap<String, Value>,
pub harness_session_id: String,
pub harness_version: String,
pub id: String,
pub last_seen_at: String,
pub live: bool,
pub name: String,
pub parent_session_id: String,
pub rollup: SessionRollup,
pub started_at: String,
}Expand description
The per-session shape: capture identity at the top level, the deriver-
owned projection nested under rollup.
Models the contract’s SessionItem schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.auth_subject: StringThe gateway-stamped JWT subject (WorkOS user id) captured at ingest; empty for rows captured before the edge began stamping it.
cwd: StringThe contract’s cwd.
display_name: StringThe user’s Console rename (sessions.display_name), empty unless a user set one.
display_title: StringThe server-resolved label clients should render: DisplayName -> rollup.title (generated) -> preview -> Name -> id slice.
ended_at: StringThe contract’s ended_at, an RFC 3339 timestamp.
harness_id: StringThe contract’s harness_id.
harness_metadata: BTreeMap<String, Value>The contract’s harness_metadata.
harness_session_id: StringThe contract’s harness_session_id.
harness_version: StringThe contract’s harness_version.
id: StringIdentity — capture-side facts, ingest-written.
last_seen_at: StringThe contract’s last_seen_at, an RFC 3339 timestamp.
live: boolA runtime presence signal, not a projection fact: true when the session has no recorded end and was seen within the liveness window.
name: StringThe harness identity-row label — the harness-supplied session name (a plan slug), or the folded title (rollup.title) as a fallback when no name was captured.
parent_session_id: StringThe contract’s parent_session_id.
rollup: SessionRollupThe contract’s rollup.
started_at: StringThe contract’s started_at, an RFC 3339 timestamp.
Trait Implementations§
Source§impl Clone for SessionItem
impl Clone for SessionItem
Source§fn clone(&self) -> SessionItem
fn clone(&self) -> SessionItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more