pub struct SessionHeader {
pub entry_type: String,
pub version: Option<i32>,
pub id: String,
pub timestamp: String,
pub cwd: String,
pub parent_session: Option<String>,
}Expand description
Session header stored as the first line in JSONL files
Fields§
§entry_type: StringThe entry type.
version: Option<i32>The version.
id: StringThe id.
timestamp: StringThe timestamp.
cwd: StringThe cwd.
parent_session: Option<String>The parent session.
Implementations§
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 (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 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 UnsafeUnpin 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