pub struct SessionHeader {
pub version: u8,
pub id: Uuid,
pub name: String,
pub shell: String,
pub os: String,
pub hostname: String,
pub env: HashMap<String, String>,
pub tags: Vec<String>,
pub recovered: Option<bool>,
pub started_at: f64,
}Expand description
Header information for a recording session.
Contains metadata about the session that is written at the start of recording. Matches the NDJSON schema from CONTEXT.md.
Fields§
§version: u8Schema version (always 2)
id: UuidUnique session identifier
name: StringHuman-readable session name
shell: StringShell type and version (e.g., “bash 5.1.16”)
os: StringOperating system info (e.g., “Linux 6.14.0”)
hostname: StringMachine hostname
env: HashMap<String, String>Selected environment variables (PATH, SHELL, HOME, USER, PWD)
User-defined tags for organization
recovered: Option<bool>Whether this session was recovered from a stale recording lock. Only present on sessions recovered via stale lock cleanup.
started_at: f64Unix timestamp with milliseconds when session started
Trait Implementations§
Source§impl Clone for SessionHeader
impl Clone for SessionHeader
Source§fn clone(&self) -> SessionHeader
fn clone(&self) -> SessionHeader
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionHeader
impl Debug for SessionHeader
Source§impl<'de> Deserialize<'de> for SessionHeader
impl<'de> Deserialize<'de> for SessionHeader
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 SessionHeader
impl RefUnwindSafe for SessionHeader
impl Send for SessionHeader
impl Sync for SessionHeader
impl Unpin for SessionHeader
impl UnwindSafe for SessionHeader
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