pub struct Arg {
pub name: String,
pub value: Option<String>,
}Expand description
A single builder-chain argument on a command.
Parsed from dotted segments after the command name:
/cmd.flag → Arg { name: "flag", value: None }
/cmd.key(val) → Arg { name: "key", value: Some("val") }
Fields§
§name: String§value: Option<String>Trait Implementations§
impl StructuralPartialEq for Arg
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
impl UnwindSafe for Arg
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