pub struct CommandOptionSpec {
pub short: Option<char>,
pub long: &'static str,
pub input_name: &'static str,
pub value_kind: OptionValueKind,
pub default: OptionDefault,
pub negates: Option<&'static str>,
}Expand description
Data-only descriptor for a command option and its mapped action input name.
Fields§
§short: Option<char>§long: &'static str§input_name: &'static str§value_kind: OptionValueKind§default: OptionDefault§negates: Option<&'static str>Trait Implementations§
Source§impl Clone for CommandOptionSpec
impl Clone for CommandOptionSpec
Source§fn clone(&self) -> CommandOptionSpec
fn clone(&self) -> CommandOptionSpec
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 CommandOptionSpec
impl Debug for CommandOptionSpec
Source§impl PartialEq for CommandOptionSpec
impl PartialEq for CommandOptionSpec
Source§fn eq(&self, other: &CommandOptionSpec) -> bool
fn eq(&self, other: &CommandOptionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CommandOptionSpec
impl Eq for CommandOptionSpec
impl StructuralPartialEq for CommandOptionSpec
Auto Trait Implementations§
impl Freeze for CommandOptionSpec
impl RefUnwindSafe for CommandOptionSpec
impl Send for CommandOptionSpec
impl Sync for CommandOptionSpec
impl Unpin for CommandOptionSpec
impl UnsafeUnpin for CommandOptionSpec
impl UnwindSafe for CommandOptionSpec
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.