pub struct Argv {
pub commands: Vec<String>,
pub flags: HashMap<String, String>,
/* private fields */
}Expand description
Example structure:
Argv {
commands: Vec<String> [
"command",
"subcommand",
],
flags: HashMap<String, String> {
"test": "value",
"production": "false",
"help": "true",
"try-me": "false",
}
after_double_dash: ""
}Fields§
§commands: Vec<String>Commands from argv
flags: HashMap<String, String>Flags from argv in a key-value format
Implementations§
Trait Implementations§
impl StructuralPartialEq for Argv
Auto Trait Implementations§
impl Freeze for Argv
impl RefUnwindSafe for Argv
impl Send for Argv
impl Sync for Argv
impl Unpin for Argv
impl UnwindSafe for Argv
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> 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