pub struct PathResolver { /* private fields */ }Implementations§
Source§impl PathResolver
impl PathResolver
pub fn new() -> Self
pub fn with_home<P: Into<PathBuf>>(self, home: P) -> Self
pub fn with_claude_dir<P: Into<PathBuf>>(self, claude_dir: P) -> Self
pub fn home_dir(&self) -> Result<&Path>
pub fn claude_dir(&self) -> Result<PathBuf>
pub fn projects_dir(&self) -> Result<PathBuf>
pub fn history_file(&self) -> Result<PathBuf>
pub fn project_dir(&self, project_path: &str) -> Result<PathBuf>
pub fn conversation_file( &self, project_path: &str, session_id: &str, ) -> Result<PathBuf>
pub fn list_project_dirs(&self) -> Result<Vec<String>>
pub fn list_conversations(&self, project_path: &str) -> Result<Vec<String>>
pub fn exists(&self) -> bool
Trait Implementations§
Source§impl Clone for PathResolver
impl Clone for PathResolver
Source§fn clone(&self) -> PathResolver
fn clone(&self) -> PathResolver
Returns a duplicate of the value. Read more
1.0.0 · 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 PathResolver
impl Debug for PathResolver
Auto Trait Implementations§
impl Freeze for PathResolver
impl RefUnwindSafe for PathResolver
impl Send for PathResolver
impl Sync for PathResolver
impl Unpin for PathResolver
impl UnsafeUnpin for PathResolver
impl UnwindSafe for PathResolver
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