pub struct ArgDescriptor {
pub name: String,
pub arg_type: String,
pub description: Option<String>,
pub required: bool,
pub default: Option<Value>,
pub values: Option<Vec<String>>,
}Expand description
Describes a single argument (positional or flag).
Fields§
§name: String§arg_type: String§description: Option<String>§required: bool§default: Option<Value>§values: Option<Vec<String>>Trait Implementations§
Source§impl Clone for ArgDescriptor
impl Clone for ArgDescriptor
Source§fn clone(&self) -> ArgDescriptor
fn clone(&self) -> ArgDescriptor
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 ArgDescriptor
impl Debug for ArgDescriptor
Source§impl<'de> Deserialize<'de> for ArgDescriptor
impl<'de> Deserialize<'de> for ArgDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ArgDescriptor
impl RefUnwindSafe for ArgDescriptor
impl Send for ArgDescriptor
impl Sync for ArgDescriptor
impl Unpin for ArgDescriptor
impl UnsafeUnpin for ArgDescriptor
impl UnwindSafe for ArgDescriptor
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