pub struct OpenCodeTarget;Expand description
OpenCode target.
File format: { "$schema": "...", "mcp": { name: {...} } }
Trait Implementations§
Source§impl Target for OpenCodeTarget
impl Target for OpenCodeTarget
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 OpenCodeTarget
impl RefUnwindSafe for OpenCodeTarget
impl Send for OpenCodeTarget
impl Sync for OpenCodeTarget
impl Unpin for OpenCodeTarget
impl UnwindSafe for OpenCodeTarget
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