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