pub struct SessionMetadata {
pub id: String,
pub created_at: String,
pub cwd: String,
pub path: Option<PathBuf>,
pub parent_session_path: Option<String>,
}Expand description
Metadata about a session, derived from the session header. Pi-compatible: wraps header info into a metadata object.
Fields§
§id: String§created_at: String§cwd: String§path: Option<PathBuf>File path on disk, if this is a persisted session.
parent_session_path: Option<String>Path to the parent session if this was forked.
Trait Implementations§
Source§impl Clone for SessionMetadata
impl Clone for SessionMetadata
Source§fn clone(&self) -> SessionMetadata
fn clone(&self) -> SessionMetadata
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 moreAuto Trait Implementations§
impl Freeze for SessionMetadata
impl RefUnwindSafe for SessionMetadata
impl Send for SessionMetadata
impl Sync for SessionMetadata
impl Unpin for SessionMetadata
impl UnsafeUnpin for SessionMetadata
impl UnwindSafe for SessionMetadata
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