#[non_exhaustive]pub struct SessionMeta {
pub id: Option<String>,
pub timestamp: Option<String>,
pub cwd: Option<PathBuf>,
pub cli_version: Option<String>,
pub originator: Option<String>,
pub source: Option<String>,
pub git: Option<GitMeta>,
pub raw: Value,
}Expand description
The session’s opening metadata.
Every field is optional. Older files carry a different and smaller set, and a reader that required any one of them would fail on a real history.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<String>Session id as recorded inside the file.
timestamp: Option<String>ISO 8601 start time.
cwd: Option<PathBuf>Working directory the session ran in. Absent in legacy files.
cli_version: Option<String>CLI version that wrote it. Absent in legacy files.
originator: Option<String>What started the session, for example codex_cli_rs.
source: Option<String>Entry point, for example cli.
git: Option<GitMeta>Git metadata, when recorded.
raw: ValueThe metadata object as written, including keys not named above.
Trait Implementations§
Source§impl Clone for SessionMeta
impl Clone for SessionMeta
Source§fn clone(&self) -> SessionMeta
fn clone(&self) -> SessionMeta
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 SessionMeta
impl Debug for SessionMeta
Source§impl Default for SessionMeta
impl Default for SessionMeta
Source§fn default() -> SessionMeta
fn default() -> SessionMeta
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionMeta
impl PartialEq for SessionMeta
impl StructuralPartialEq for SessionMeta
Auto Trait Implementations§
impl Freeze for SessionMeta
impl RefUnwindSafe for SessionMeta
impl Send for SessionMeta
impl Sync for SessionMeta
impl Unpin for SessionMeta
impl UnsafeUnpin for SessionMeta
impl UnwindSafe for SessionMeta
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