pub struct ClaudeProject {
pub path: PathBuf,
pub has_claude_dir: bool,
pub has_claude_md: bool,
pub has_git: bool,
}Expand description
A discovered Claude Code project directory.
Why: callers need to know not just that a directory looks like a project but
why — whether it has a .claude/ directory, a CLAUDE.md, or a .git/.
A setup UI uses those flags to label and prioritise entries.
What: the absolute project path plus three boolean markers.
Test: populated and asserted by discover_claude_projects_finds_marked_dirs.
Fields§
§path: PathBufAbsolute path to the project directory.
has_claude_dir: boolDirectory contains a .claude/ subdirectory.
has_claude_md: boolDirectory contains a CLAUDE.md file.
has_git: boolDirectory contains a .git/ subdirectory.
Trait Implementations§
Source§impl Clone for ClaudeProject
impl Clone for ClaudeProject
Source§fn clone(&self) -> ClaudeProject
fn clone(&self) -> ClaudeProject
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 ClaudeProject
impl Debug for ClaudeProject
Source§impl PartialEq for ClaudeProject
impl PartialEq for ClaudeProject
Source§fn eq(&self, other: &ClaudeProject) -> bool
fn eq(&self, other: &ClaudeProject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ClaudeProject
impl StructuralPartialEq for ClaudeProject
Auto Trait Implementations§
impl Freeze for ClaudeProject
impl RefUnwindSafe for ClaudeProject
impl Send for ClaudeProject
impl Sync for ClaudeProject
impl Unpin for ClaudeProject
impl UnsafeUnpin for ClaudeProject
impl UnwindSafe for ClaudeProject
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