pub struct Args<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts = DescrStdOpts> {
pub verbose: u8,
pub wallet: WalletOpts<O>,
pub resolver: ResolverOpt,
pub general: GeneralOpts,
pub command: C,
}
Expand description
Command-line arguments
Fields§
§verbose: u8
Set verbosity level.
Can be used multiple times to increase verbosity.
wallet: WalletOpts<O>
§resolver: ResolverOpt
§general: GeneralOpts
§command: C
Command to execute.
Implementations§
Source§impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Args<C, O>
impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Args<C, O>
Source§impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Args<C, O>
impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Args<C, O>
Trait Implementations§
Source§impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Args for Args<C, O>
impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Args for Args<C, O>
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§impl<C: Clone + Clone + Eq + Debug + Subcommand, O: Clone + DescriptorOpts> Clone for Args<C, O>
impl<C: Clone + Clone + Eq + Debug + Subcommand, O: Clone + DescriptorOpts> Clone for Args<C, O>
Source§impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> CommandFactory for Args<C, O>
impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> CommandFactory for Args<C, O>
Source§impl<C: Debug + Clone + Eq + Debug + Subcommand, O: Debug + DescriptorOpts> Debug for Args<C, O>
impl<C: Debug + Clone + Eq + Debug + Subcommand, O: Debug + DescriptorOpts> Debug for Args<C, O>
Source§impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> FromArgMatches for Args<C, O>
impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> FromArgMatches for Args<C, O>
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
.Source§impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Parser for Args<C, O>
impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> Parser for Args<C, O>
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Source§impl<C: PartialEq + Clone + Eq + Debug + Subcommand, O: PartialEq + DescriptorOpts> PartialEq for Args<C, O>
impl<C: PartialEq + Clone + Eq + Debug + Subcommand, O: PartialEq + DescriptorOpts> PartialEq for Args<C, O>
impl<C: Eq + Clone + Eq + Debug + Subcommand, O: Eq + DescriptorOpts> Eq for Args<C, O>
impl<C: Clone + Eq + Debug + Subcommand, O: DescriptorOpts> StructuralPartialEq for Args<C, O>
Auto Trait Implementations§
impl<C, O> Freeze for Args<C, O>
impl<C, O> RefUnwindSafe for Args<C, O>where
C: RefUnwindSafe,
O: RefUnwindSafe,
impl<C, O> Send for Args<C, O>
impl<C, O> Sync for Args<C, O>
impl<C, O> Unpin for Args<C, O>
impl<C, O> UnwindSafe for Args<C, O>where
C: UnwindSafe,
O: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.