pub enum Commands<CS: Subcommand, S: Args> {
Init {
network: Network,
descriptor: String,
change_descriptor: Option<String>,
},
ChainSpecific(CS),
Address {
addr_cmd: AddressCmd,
},
Balance,
TxOut {
txout_cmd: TxOutCmd,
},
Psbt {
psbt_cmd: PsbtCmd<S>,
},
Generate {
network: Network,
},
}
Variants§
Init
Initialize a new data store.
Fields
§
network: Network
Network
ChainSpecific(CS)
Address
Address generation and inspection.
Fields
§
addr_cmd: AddressCmd
Balance
Get the wallet balance.
TxOut
TxOut related commands.
Psbt
PSBT operations
Generate
Generate new BIP86 descriptors.
Fields
§
network: Network
Network
Trait Implementations§
Source§impl<CS: Subcommand, S: Args> FromArgMatches for Commands<CS, S>
impl<CS: Subcommand, S: Args> FromArgMatches for Commands<CS, S>
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<CS: Subcommand, S: Args> Subcommand for Commands<CS, S>
impl<CS: Subcommand, S: Args> Subcommand for Commands<CS, S>
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<CS, S> Freeze for Commands<CS, S>
impl<CS, S> RefUnwindSafe for Commands<CS, S>where
CS: RefUnwindSafe,
S: RefUnwindSafe,
impl<CS, S> Send for Commands<CS, S>
impl<CS, S> Sync for Commands<CS, S>
impl<CS, S> Unpin for Commands<CS, S>
impl<CS, S> UnwindSafe for Commands<CS, S>where
CS: UnwindSafe,
S: UnwindSafe,
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