Struct cliparser::types::PositionalArgument
source · [−]pub struct PositionalArgument {
pub name: String,
pub help: Option<ArgumentHelp>,
}
Expand description
Holds the positional argument spec
Fields
name: String
Unique name for the argument later used to pull the parsed information
help: Option<ArgumentHelp>
Help text
Trait Implementations
sourceimpl Clone for PositionalArgument
impl Clone for PositionalArgument
sourcefn clone(&self) -> PositionalArgument
fn clone(&self) -> PositionalArgument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PositionalArgument
impl Debug for PositionalArgument
sourceimpl PartialEq<PositionalArgument> for PositionalArgument
impl PartialEq<PositionalArgument> for PositionalArgument
sourcefn eq(&self, other: &PositionalArgument) -> bool
fn eq(&self, other: &PositionalArgument) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PositionalArgument) -> bool
fn ne(&self, other: &PositionalArgument) -> bool
This method tests for !=
.
impl StructuralPartialEq for PositionalArgument
Auto Trait Implementations
impl RefUnwindSafe for PositionalArgument
impl Send for PositionalArgument
impl Sync for PositionalArgument
impl Unpin for PositionalArgument
impl UnwindSafe for PositionalArgument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more