pub struct CursorStore {
pub chats_dir: PathBuf,
}Expand description
Reads and writes Cursor chat stores under a chats root
(default ~/.cursor/chats).
Fields§
§chats_dir: PathBufImplementations§
Source§impl CursorStore
impl CursorStore
Trait Implementations§
Source§impl Clone for CursorStore
impl Clone for CursorStore
Source§fn clone(&self) -> CursorStore
fn clone(&self) -> CursorStore
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 CursorStore
impl Debug for CursorStore
Source§impl Store for CursorStore
Available on crate feature opencode only.
impl Store for CursorStore
Available on crate feature
opencode only.Source§fn delete(&self, reference: &PathBuf) -> Result<()>
fn delete(&self, reference: &PathBuf) -> Result<()>
The Ref is the session’s store.db; deleting removes its parent
directory. Guarded on shape and containment: the store file must
exist and its session directory must resolve (symlinks and all) to
<chats_dir>/<workspace>/<id>, so a stale or foreign reference never
removes an unrelated tree.
Source§fn discover(&self) -> Result<Vec<Discovered<PathBuf>>>
fn discover(&self) -> Result<Vec<Discovered<PathBuf>>>
Cheap metadata scan — no full message parsing. Read more
Source§fn load(&self, reference: &PathBuf) -> Result<Transcript<Cursor>>
fn load(&self, reference: &PathBuf) -> Result<Transcript<Cursor>>
Load and parse one transcript into its faithful native representation. Read more
Auto Trait Implementations§
impl Freeze for CursorStore
impl RefUnwindSafe for CursorStore
impl Send for CursorStore
impl Sync for CursorStore
impl Unpin for CursorStore
impl UnsafeUnpin for CursorStore
impl UnwindSafe for CursorStore
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