pub enum AcaoVps {
Add {
name: String,
host: String,
port: u16,
user: String,
password: Option<String>,
timeout: u64,
max_chars: String,
sudo_password: Option<String>,
su_password: Option<String>,
},
List {
json: bool,
},
Remove {
nome: String,
yes: bool,
},
Edit {
nome: String,
host: Option<String>,
port: Option<u16>,
user: Option<String>,
password: Option<String>,
timeout: Option<u64>,
max_chars: Option<String>,
sudo_password: Option<String>,
su_password: Option<String>,
},
Show {
nome: String,
json: bool,
},
Path,
}Expand description
Ações do subcomando vps.
Variants§
Add
Adiciona uma nova VPS ao registro.
Fields
List
Lista todas as VPSs (senhas mascaradas).
Remove
Remove uma VPS do registro.
Fields
Edit
Edita campos de uma VPS existente.
Fields
Show
Exibe detalhes de uma VPS (senhas mascaradas).
Path
Exibe o caminho do arquivo de configuração.
Trait Implementations§
Source§impl FromArgMatches for AcaoVps
impl FromArgMatches for AcaoVps
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 AcaoVps
impl Subcommand for AcaoVps
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 AcaoVps
impl RefUnwindSafe for AcaoVps
impl Send for AcaoVps
impl Sync for AcaoVps
impl Unpin for AcaoVps
impl UnsafeUnpin for AcaoVps
impl UnwindSafe for AcaoVps
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