pub struct SingleOption {
pub name: String,
pub description: String,
pub short_flag: String,
pub long_flag: String,
pub value: ValueTypes,
}Expand description
Represents a single command-line option with its configuration.
This stores both the definition (flags, description) and the parsed value.
Fields§
§name: String§description: String§short_flag: String§long_flag: String§value: ValueTypesTrait Implementations§
Source§impl Clone for SingleOption
impl Clone for SingleOption
Source§fn clone(&self) -> SingleOption
fn clone(&self) -> SingleOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SingleOption
impl RefUnwindSafe for SingleOption
impl Send for SingleOption
impl Sync for SingleOption
impl Unpin for SingleOption
impl UnsafeUnpin for SingleOption
impl UnwindSafe for SingleOption
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