pub enum ConnCommand {
Add(AddArgs),
List,
Show(NameArgs),
Edit(EditArgs),
Remove(NameArgs),
Test(TestArgs),
Default(NameArgs),
}Expand description
The seven profile lifecycle commands.
Variants§
Add(AddArgs)
Create a named profile.
List
List profiles without revealing any secret.
Show(NameArgs)
Show one profile with its secret redacted.
Edit(EditArgs)
Change a field of an existing profile.
Remove(NameArgs)
Delete a profile and the secret it holds.
Test(TestArgs)
Open, confirm and close the connection.
Default(NameArgs)
Set which profile applies without an explicit choice.
Implementations§
Source§impl ConnCommand
impl ConnCommand
Sourcepub const fn published_name(&self) -> &'static str
pub const fn published_name(&self) -> &'static str
The published name of this profile command.
Trait Implementations§
Source§impl Clone for ConnCommand
impl Clone for ConnCommand
Source§impl Debug for ConnCommand
impl Debug for ConnCommand
Source§impl FromArgMatches for ConnCommand
impl FromArgMatches for ConnCommand
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for ConnCommand
impl Subcommand for ConnCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ConnCommand
impl RefUnwindSafe for ConnCommand
impl Send for ConnCommand
impl Sync for ConnCommand
impl Unpin for ConnCommand
impl UnsafeUnpin for ConnCommand
impl UnwindSafe for ConnCommand
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