pub struct SessionFile {
pub path: PathBuf,
pub id: String,
pub date: (u16, u8, u8),
}Expand description
A rollout file on disk, identified without opening it.
Fields§
§path: PathBufFull path to the .jsonl file.
id: StringThe session id, taken from the filename.
This is the thread_id a resume takes.
date: (u16, u8, u8)The date directory this file sits in, as (year, month, day).
Trait Implementations§
Source§impl Clone for SessionFile
impl Clone for SessionFile
Source§fn clone(&self) -> SessionFile
fn clone(&self) -> SessionFile
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 SessionFile
impl Debug for SessionFile
impl Eq for SessionFile
Source§impl PartialEq for SessionFile
impl PartialEq for SessionFile
impl StructuralPartialEq for SessionFile
Auto Trait Implementations§
impl Freeze for SessionFile
impl RefUnwindSafe for SessionFile
impl Send for SessionFile
impl Sync for SessionFile
impl Unpin for SessionFile
impl UnsafeUnpin for SessionFile
impl UnwindSafe for SessionFile
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