pub struct TargetDir { /* private fields */ }Expand description
Target directory snapshot (e.g., ~/.claude or project/.claude)
Implementations§
Trait Implementations§
Source§impl SnapshotTarget for TargetDir
impl SnapshotTarget for TargetDir
Source§fn storage_dir(&self, base_dir: &Path) -> PathBuf
fn storage_dir(&self, base_dir: &Path) -> PathBuf
Get the storage directory for snapshots of this target
Source§fn content_path(&self) -> &Path
fn content_path(&self) -> &Path
Get the content path to snapshot
Source§fn identifier(&self) -> String
fn identifier(&self) -> String
Get identifier for display/messages
Source§fn should_exclude(&self, path: &Path, base: &Path) -> bool
fn should_exclude(&self, path: &Path, base: &Path) -> bool
Check if a file should be excluded from snapshot
Source§fn not_found_error(&self) -> DotAgentError
fn not_found_error(&self) -> DotAgentError
Error to return when source doesn’t exist
Auto Trait Implementations§
impl Freeze for TargetDir
impl RefUnwindSafe for TargetDir
impl Send for TargetDir
impl Sync for TargetDir
impl Unpin for TargetDir
impl UnwindSafe for TargetDir
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