pub struct DesktopCodeOptions {
pub extensions_dir: Option<String>,
pub user_data_dir: Option<String>,
pub use_version: Option<String>,
}
Expand description
Arguments applicable whenever the desktop editor is launched
Fields§
§extensions_dir: Option<String>
Set the root path for extensions.
user_data_dir: Option<String>
Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of the editor.
use_version: Option<String>
Sets the editor version to use for this command. The preferred version
can be persisted with code version use <version>
. Can be “stable”,
“insiders”, a version number, or an absolute path to an existing install.
Implementations§
Source§impl DesktopCodeOptions
impl DesktopCodeOptions
pub fn add_code_args(&self, target: &mut Vec<String>)
Trait Implementations§
Source§impl Args for DesktopCodeOptions
impl Args for DesktopCodeOptions
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 DesktopCodeOptions
impl Clone for DesktopCodeOptions
Source§fn clone(&self) -> DesktopCodeOptions
fn clone(&self) -> DesktopCodeOptions
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 DesktopCodeOptions
impl Debug for DesktopCodeOptions
Source§impl Default for DesktopCodeOptions
impl Default for DesktopCodeOptions
Source§fn default() -> DesktopCodeOptions
fn default() -> DesktopCodeOptions
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for DesktopCodeOptions
impl FromArgMatches for DesktopCodeOptions
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 DesktopCodeOptions
impl RefUnwindSafe for DesktopCodeOptions
impl Send for DesktopCodeOptions
impl Sync for DesktopCodeOptions
impl Unpin for DesktopCodeOptions
impl UnwindSafe for DesktopCodeOptions
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