pub struct FileSystemAdapter { /* private fields */ }Expand description
Each instance is configured with a name and a map of EntityConfigs.
All built-in adapters (claude-code, factory, gemini-cli, etc.) are instances
of this struct with different configurations — the PlatformAdapter trait
allows alternative implementations if needed.
Implementations§
Source§impl FileSystemAdapter
impl FileSystemAdapter
pub fn new(name: &str, entities: HashMap<EntityType, EntityConfig>) -> Self
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
fn name(&self) -> &str
fn supports(&self, entity_type: EntityType) -> bool
fn target_dir(&self, entity_type: EntityType, ctx: &AdapterScope<'_>) -> PathBuf
fn dir_mode(&self, entity_type: EntityType) -> Option<DirInstallMode>
Source§fn deploy_entry(&self, req: &DeployRequest<'_>) -> DeployResult
fn deploy_entry(&self, req: &DeployRequest<'_>) -> DeployResult
Returns
{patch_key: installed_path} for every file that was placed.
Returns an empty map for dry-run or when deployment is skipped.fn installed_path(&self, entry: &Entry, ctx: &AdapterScope<'_>) -> PathBuf
fn installed_dir_files( &self, entry: &Entry, ctx: &AdapterScope<'_>, ) -> HashMap<String, PathBuf>
Auto 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