pub struct FileSystemAdapter { /* private fields */ }Expand description
Filesystem-based platform adapter.
Each instance is configured with a name and a map of EntityConfigs.
All three built-in adapters (claude-code, gemini-cli, codex) are instances
of this struct with different configurations — the PlatformAdapter trait
allows alternative implementations if needed.
Implementations§
Trait Implementations§
Source§impl Clone for FileSystemAdapter
impl Clone for FileSystemAdapter
Source§fn clone(&self) -> FileSystemAdapter
fn clone(&self) -> FileSystemAdapter
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 FileSystemAdapter
impl Debug for FileSystemAdapter
Source§impl PlatformAdapter for FileSystemAdapter
impl PlatformAdapter for FileSystemAdapter
Source§fn supports(&self, entity_type: &str) -> bool
fn supports(&self, entity_type: &str) -> bool
Whether this platform supports the given entity type (e.g.
"skill", "agent").Source§fn target_dir(
&self,
entity_type: &str,
scope: Scope,
repo_root: &Path,
) -> PathBuf
fn target_dir( &self, entity_type: &str, scope: Scope, repo_root: &Path, ) -> PathBuf
Resolve the absolute target directory for an entity type + scope.
Source§fn dir_mode(&self, entity_type: &str) -> Option<DirInstallMode>
fn dir_mode(&self, entity_type: &str) -> Option<DirInstallMode>
The install mode for directory entries of this entity type.
Source§fn deploy_entry(
&self,
entry: &Entry,
source: &Path,
scope: Scope,
repo_root: &Path,
opts: &InstallOptions,
) -> DeployResult
fn deploy_entry( &self, entry: &Entry, source: &Path, scope: Scope, repo_root: &Path, opts: &InstallOptions, ) -> DeployResult
Deploy a single entry from
source to its platform-specific location. Read moreAuto Trait Implementations§
impl Freeze for FileSystemAdapter
impl RefUnwindSafe for FileSystemAdapter
impl Send for FileSystemAdapter
impl Sync for FileSystemAdapter
impl Unpin for FileSystemAdapter
impl UnsafeUnpin for FileSystemAdapter
impl UnwindSafe for FileSystemAdapter
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