pub struct AppArguments<CA>where
CA: EzArgs,{
pub lib: CommonArg,
pub client: CA,
}Expand description
Wraps the library and your business logic command line arguments.
Fields§
§lib: CommonArgArguments define by this library
client: CAArguments provided for your business logic. If you don’t need any, you can use NoClientArgs
Trait Implementations§
Source§impl<CA> Args for AppArguments<CA>where
CA: EzArgs,
impl<CA> Args for AppArguments<CA>where
CA: EzArgs,
Source§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<CA> Clone for AppArguments<CA>
impl<CA> Clone for AppArguments<CA>
Source§fn clone(&self) -> AppArguments<CA>
fn clone(&self) -> AppArguments<CA>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<CA> CommandFactory for AppArguments<CA>where
CA: EzArgs,
impl<CA> CommandFactory for AppArguments<CA>where
CA: EzArgs,
Source§impl<CA> Debug for AppArguments<CA>
impl<CA> Debug for AppArguments<CA>
Source§impl<CA> FromArgMatches for AppArguments<CA>where
CA: EzArgs,
impl<CA> FromArgMatches for AppArguments<CA>where
CA: EzArgs,
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<CA> Parser for AppArguments<CA>where
CA: EzArgs,
impl<CA> Parser for AppArguments<CA>where
CA: EzArgs,
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)
Auto Trait Implementations§
impl<CA> Freeze for AppArguments<CA>where
CA: Freeze,
impl<CA> RefUnwindSafe for AppArguments<CA>where
CA: RefUnwindSafe,
impl<CA> Send for AppArguments<CA>where
CA: Send,
impl<CA> Sync for AppArguments<CA>where
CA: Sync,
impl<CA> Unpin for AppArguments<CA>where
CA: Unpin,
impl<CA> UnsafeUnpin for AppArguments<CA>where
CA: UnsafeUnpin,
impl<CA> UnwindSafe for AppArguments<CA>where
CA: 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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more