pub struct OpenCodeStore {
pub db_path: PathBuf,
}Expand description
Reads and writes OpenCode sessions in a SQLite database. A Ref is a
session id, since every session shares the one database file.
Fields§
§db_path: PathBufImplementations§
Source§impl OpenCodeStore
impl OpenCodeStore
Trait Implementations§
Source§impl Clone for OpenCodeStore
impl Clone for OpenCodeStore
Source§fn clone(&self) -> OpenCodeStore
fn clone(&self) -> OpenCodeStore
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 OpenCodeStore
impl Debug for OpenCodeStore
Source§impl Store for OpenCodeStore
impl Store for OpenCodeStore
Source§fn discover(&self) -> Result<Vec<Discovered<String>>>
fn discover(&self) -> Result<Vec<Discovered<String>>>
Cheap metadata scan — no full message parsing.
Source§fn load(&self, reference: &String) -> Result<Transcript<OpenCode>>
fn load(&self, reference: &String) -> Result<Transcript<OpenCode>>
Load and parse one transcript into its faithful native representation.
Auto Trait Implementations§
impl Freeze for OpenCodeStore
impl RefUnwindSafe for OpenCodeStore
impl Send for OpenCodeStore
impl Sync for OpenCodeStore
impl Unpin for OpenCodeStore
impl UnsafeUnpin for OpenCodeStore
impl UnwindSafe for OpenCodeStore
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