pub struct InstallCommand {
pub pack: String,
pub tool: Option<String>,
pub global: bool,
pub description: Option<String>,
pub source: Option<String>,
}Fields§
§pack: StringPack to install (format: name[@version] or type/name[@version]) Version supports: exact (1.2.3), latest, caret (^1.2.3), tilde (~1.2.3), ranges (>=1.0.0, <2.0.0)
tool: Option<String>Tool to install for (uses active tool if not specified)
global: boolInstall globally (user-wide) instead of locally (project-specific)
description: Option<String>Pack description
source: Option<String>Pack source URL
Implementations§
Trait Implementations§
Source§impl Args for InstallCommand
impl Args for InstallCommand
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 Debug for InstallCommand
impl Debug for InstallCommand
Source§impl FromArgMatches for InstallCommand
impl FromArgMatches for InstallCommand
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 InstallCommand
impl RefUnwindSafe for InstallCommand
impl Send for InstallCommand
impl Sync for InstallCommand
impl Unpin for InstallCommand
impl UnsafeUnpin for InstallCommand
impl UnwindSafe for InstallCommand
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