pub struct ParamSchema {
pub name: String,
pub param_type: ParamType,
pub required: bool,
pub description: String,
pub default: Option<Value>,
pub choices: Option<Vec<String>>,
pub range: Option<ParamRange>,
}Expand description
Describes a single parameter for a command (used by –schema).
Fields§
§name: String§param_type: ParamType§required: bool§description: String§default: Option<Value>§choices: Option<Vec<String>>§range: Option<ParamRange>Trait Implementations§
Source§impl Clone for ParamSchema
impl Clone for ParamSchema
Source§fn clone(&self) -> ParamSchema
fn clone(&self) -> ParamSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 ParamSchema
impl Debug for ParamSchema
Auto Trait Implementations§
impl Freeze for ParamSchema
impl RefUnwindSafe for ParamSchema
impl Send for ParamSchema
impl Sync for ParamSchema
impl Unpin for ParamSchema
impl UnsafeUnpin for ParamSchema
impl UnwindSafe for ParamSchema
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