pub struct Folio {
pub source: PathBuf,
pub turns: Vec<Turn>,
}Expand description
One rendered session: the unit the tool turns into a single HTML file.
Fields§
§source: PathBuf§turns: Vec<Turn>Implementations§
Source§impl Folio
impl Folio
Sourcepub fn read(source: &Path) -> Result<Self>
pub fn read(source: &Path) -> Result<Self>
Reads a session JSONL file, keeping only the lines that carry conversation.
pub fn session_id(&self) -> &str
Sourcepub fn peek(source: &Path) -> SessionPeek
pub fn peek(source: &Path) -> SessionPeek
Cheaply scans a session’s listing metadata (its title and working
directory) without parsing the conversation, tolerating malformed lines
so one bad session never breaks a picker that lists every session. This
is deliberately lenient where Folio::read is strict: a label is
best-effort, a render is not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Folio
impl RefUnwindSafe for Folio
impl Send for Folio
impl Sync for Folio
impl Unpin for Folio
impl UnsafeUnpin for Folio
impl UnwindSafe for Folio
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