pub struct StandardArgs {
pub subcommand: Option<Command>,
pub config: Option<PathBuf>,
pub directories: Vec<PathBuf>,
pub completions: Option<String>,
pub output: Output,
pub target_os: Option<Vec<String>>,
}Fields§
§subcommand: Option<Command>§config: Option<PathBuf>Path to the config file for this typeshare
directories: Vec<PathBuf>The directories within which to recursively find and process rust files
completions: Option<String>§output: Output§target_os: Option<Vec<String>>If given, only fields / types / variants matching at least one of these
OSes (per cfg(target_os)) will be emitted. If any --target-os
arguments are passed, they will override ALL target OSes passed via
a config file.
Generally, typeshare will err on the side of generating things. For
instance, given --target-os=ios and cfg(any(target_os="android", test)),
it WILL generate a type, because that type does exist on iOS in test
mode: there exists a configuration where that type exists on iOS.
In the future typeshare may be able to consider other cfgs.
Trait Implementations§
Source§impl Args for StandardArgs
impl Args for StandardArgs
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 CommandFactory for StandardArgs
impl CommandFactory for StandardArgs
Source§impl Debug for StandardArgs
impl Debug for StandardArgs
Source§impl FromArgMatches for StandardArgs
impl FromArgMatches for StandardArgs
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 Parser for StandardArgs
impl Parser for StandardArgs
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 Freeze for StandardArgs
impl RefUnwindSafe for StandardArgs
impl Send for StandardArgs
impl Sync for StandardArgs
impl Unpin for StandardArgs
impl UnsafeUnpin for StandardArgs
impl UnwindSafe for StandardArgs
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> 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