pub struct ValueBinding {
pub path: &'static [&'static str],
pub argument: &'static str,
pub source: ValueSource,
}Expand description
Where the values of an argument come from, when the type the declaration erased is one this repository has a registry for.
Keyed by the command path and the argument’s id. Inference comes first — a value-enum
argument carries its own values and a PATH placeholder is a path — so only an
identifier whose set lives in a registry appears here.
Fields§
§path: &'static [&'static str]The command path the argument belongs to.
argument: &'static strThe argument’s id, as clap knows it.
source: ValueSourceWhere its values come from.
Trait Implementations§
Source§impl Clone for ValueBinding
impl Clone for ValueBinding
Source§fn clone(&self) -> ValueBinding
fn clone(&self) -> ValueBinding
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 moreimpl Copy for ValueBinding
Source§impl Debug for ValueBinding
impl Debug for ValueBinding
impl Eq for ValueBinding
Source§impl PartialEq for ValueBinding
impl PartialEq for ValueBinding
Source§fn eq(&self, other: &ValueBinding) -> bool
fn eq(&self, other: &ValueBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValueBinding
Auto Trait Implementations§
impl Freeze for ValueBinding
impl RefUnwindSafe for ValueBinding
impl Send for ValueBinding
impl Sync for ValueBinding
impl Unpin for ValueBinding
impl UnsafeUnpin for ValueBinding
impl UnwindSafe for ValueBinding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.