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