pub struct ClaudeTarget;Expand description
Claude Code CLI target.
File format: { "mcpServers": { name: {...} } }
Trait Implementations§
Source§impl Target for ClaudeTarget
impl Target for ClaudeTarget
Source§fn global_path(&self) -> Result<PathBuf>
fn global_path(&self) -> Result<PathBuf>
Returns the path to the global (user-level) configuration file.
Source§fn project_path(&self, project_root: &Path) -> PathBuf
fn project_path(&self, project_root: &Path) -> PathBuf
Returns the path to the project-level configuration file.
Source§fn sync(&self, path: &Path, canon: &Canon, opts: &SyncOptions) -> Result<()>
fn sync(&self, path: &Path, canon: &Canon, opts: &SyncOptions) -> Result<()>
Syncs the canonical configuration to the target file. Read more
Source§fn sync_global(&self, canon: &Canon, opts: &SyncOptions) -> Result<()>
fn sync_global(&self, canon: &Canon, opts: &SyncOptions) -> Result<()>
Syncs to the global configuration file.
Source§fn sync_project(
&self,
project_root: &Path,
canon: &Canon,
opts: &SyncOptions,
) -> Result<()>
fn sync_project( &self, project_root: &Path, canon: &Canon, opts: &SyncOptions, ) -> Result<()>
Syncs to the project configuration file.
Auto Trait Implementations§
impl Freeze for ClaudeTarget
impl RefUnwindSafe for ClaudeTarget
impl Send for ClaudeTarget
impl Sync for ClaudeTarget
impl Unpin for ClaudeTarget
impl UnwindSafe for ClaudeTarget
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