pub struct CompletionInstallArgs {
pub shell: CompletionShell,
pub rc: Option<PathBuf>,
pub remove: bool,
pub dry_run: bool,
}Expand description
The arguments of completion install.
Fields§
§shell: CompletionShellWhich shell to install for; decides the startup file when –rc is not given
rc: Option<PathBuf>The startup file to write, instead of the shell’s usual one
remove: boolTake the block out again, leaving the rest of the file as it was
dry_run: boolSay what would change and write nothing
Trait Implementations§
Source§impl Args for CompletionInstallArgs
impl Args for CompletionInstallArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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 CompletionInstallArgs
impl Debug for CompletionInstallArgs
Source§impl FromArgMatches for CompletionInstallArgs
impl FromArgMatches for CompletionInstallArgs
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 CompletionInstallArgs
impl RefUnwindSafe for CompletionInstallArgs
impl Send for CompletionInstallArgs
impl Sync for CompletionInstallArgs
impl Unpin for CompletionInstallArgs
impl UnsafeUnpin for CompletionInstallArgs
impl UnwindSafe for CompletionInstallArgs
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