pub struct McpInstallArgs {
pub client: ClientValue,
pub config: PathBuf,
pub binary_path: Option<PathBuf>,
pub dry_run: bool,
pub force: bool,
pub format: McpReportFormat,
}Fields§
§client: ClientValue§config: PathBuf指向 spool.toml 配置文件 (mcpServers 条目里写绝对路径)
binary_path: Option<PathBuf>自定义 spool-mcp 二进制路径 (默认走 ~/.cargo/bin/spool-mcp)
dry_run: bool仅打印将要发生的写入,不修改任何文件
force: bool已存在 spool 条目时强制覆盖 (默认拒绝并要求 uninstall 后重装)
format: McpReportFormat输出格式
Trait Implementations§
Source§impl Args for McpInstallArgs
impl Args for McpInstallArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for McpInstallArgs
impl Clone for McpInstallArgs
Source§fn clone(&self) -> McpInstallArgs
fn clone(&self) -> McpInstallArgs
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 moreSource§impl Debug for McpInstallArgs
impl Debug for McpInstallArgs
Source§impl FromArgMatches for McpInstallArgs
impl FromArgMatches for McpInstallArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for McpInstallArgs
impl RefUnwindSafe for McpInstallArgs
impl Send for McpInstallArgs
impl Sync for McpInstallArgs
impl Unpin for McpInstallArgs
impl UnsafeUnpin for McpInstallArgs
impl UnwindSafe for McpInstallArgs
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