pub struct CliFlagSpec {
pub name: &'static str,
pub value_name: Option<&'static str>,
pub required: bool,
pub description: &'static str,
}Expand description
Static specification of a single CLI flag.
Fields§
§name: &'static strFlag name (e.g. --name).
value_name: Option<&'static str>Metavariable for the flag’s value, if it takes one.
required: boolWhether the flag is required.
description: &'static strHuman-readable description of the flag.
Trait Implementations§
Source§impl Clone for CliFlagSpec
impl Clone for CliFlagSpec
Source§fn clone(&self) -> CliFlagSpec
fn clone(&self) -> CliFlagSpec
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 moreSource§impl Debug for CliFlagSpec
impl Debug for CliFlagSpec
Source§impl PartialEq for CliFlagSpec
impl PartialEq for CliFlagSpec
Source§fn eq(&self, other: &CliFlagSpec) -> bool
fn eq(&self, other: &CliFlagSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CliFlagSpec
impl Eq for CliFlagSpec
impl StructuralPartialEq for CliFlagSpec
Auto Trait Implementations§
impl Freeze for CliFlagSpec
impl RefUnwindSafe for CliFlagSpec
impl Send for CliFlagSpec
impl Sync for CliFlagSpec
impl Unpin for CliFlagSpec
impl UnsafeUnpin for CliFlagSpec
impl UnwindSafe for CliFlagSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.