pub struct PositionalSpec {
pub name: String,
pub required: bool,
pub multiple: bool,
pub help: Option<String>,
}Expand description
A positional argument.
Fields§
§name: StringDisplay name, e.g. "DATASET".
required: bool§multiple: boolGreedy trailing positional (collects the rest).
help: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for PositionalSpec
impl Clone for PositionalSpec
Source§fn clone(&self) -> PositionalSpec
fn clone(&self) -> PositionalSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PositionalSpec
impl RefUnwindSafe for PositionalSpec
impl Send for PositionalSpec
impl Sync for PositionalSpec
impl Unpin for PositionalSpec
impl UnsafeUnpin for PositionalSpec
impl UnwindSafe for PositionalSpec
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