pub struct InstallContext {
pub binary_path: Option<PathBuf>,
pub config_path: PathBuf,
pub dry_run: bool,
pub force: bool,
}Expand description
Inputs shared by all installer entry points.
Fields§
§binary_path: Option<PathBuf>Optional override for the spool-mcp binary path. When None, the
installer is responsible for resolving a stable path (e.g. via
cargo install). When set, it must be an absolute path.
config_path: PathBufspool config TOML used by the registered MCP entry.
dry_run: boolWhen true, installer must NOT write to disk; instead populate the
returned report’s planned_writes list.
force: boolWhen true, installer is allowed to overwrite an existing client
entry in mcpServers. Default behavior on conflict is to refuse
and report Conflict.
Implementations§
Trait Implementations§
Source§impl Clone for InstallContext
impl Clone for InstallContext
Source§fn clone(&self) -> InstallContext
fn clone(&self) -> InstallContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InstallContext
impl RefUnwindSafe for InstallContext
impl Send for InstallContext
impl Sync for InstallContext
impl Unpin for InstallContext
impl UnsafeUnpin for InstallContext
impl UnwindSafe for InstallContext
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