pub struct InstallExtensionArgs {
pub id_or_path: Vec<String>,
pub pre_release: bool,
pub force: bool,
}
Fields§
§id_or_path: Vec<String>
Either an extension id or a path to a VSIX. The identifier of an extension is ‘${publisher}.${name}’. Use ‘–force’ argument to update to latest version. To install a specific version provide ‘@${version}’. For example: ‘vscode.csharp@1.2.3’.
pre_release: bool
Installs the pre-release version of the extension
force: bool
Update to the latest version of the extension if it’s already installed.
Trait Implementations§
Source§impl Args for InstallExtensionArgs
impl Args for InstallExtensionArgs
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 InstallExtensionArgs
impl Clone for InstallExtensionArgs
Source§fn clone(&self) -> InstallExtensionArgs
fn clone(&self) -> InstallExtensionArgs
Returns a copy of the value. Read more
1.0.0 · 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 InstallExtensionArgs
impl Debug for InstallExtensionArgs
Source§impl FromArgMatches for InstallExtensionArgs
impl FromArgMatches for InstallExtensionArgs
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 InstallExtensionArgs
impl RefUnwindSafe for InstallExtensionArgs
impl Send for InstallExtensionArgs
impl Sync for InstallExtensionArgs
impl Unpin for InstallExtensionArgs
impl UnwindSafe for InstallExtensionArgs
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