pub struct EnvArgs {
pub target: Utf8PathBuf,
pub apply: Option<Item>,
pub value: Option<String>,
pub json: bool,
}Expand description
Report the shell environment the gates read, or write one item of it.
Fields§
§target: Utf8PathBufThe repository to read; absolute, or the working directory.
apply: Option<Item>Write this item through the loader the repository records, with its ignore entry; without it the report is printed and nothing is written.
value: Option<String>The docs scratch location the variable names, for
--apply docs-scratch-variable.
json: boolPrint one JSON object instead of text.
Trait Implementations§
Source§impl Args for EnvArgs
impl Args for EnvArgs
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 FromArgMatches for EnvArgs
impl FromArgMatches for EnvArgs
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.Auto Trait Implementations§
impl Freeze for EnvArgs
impl RefUnwindSafe for EnvArgs
impl Send for EnvArgs
impl Sync for EnvArgs
impl Unpin for EnvArgs
impl UnsafeUnpin for EnvArgs
impl UnwindSafe for EnvArgs
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