pub struct ParamSchema {
pub name: String,
pub param_type: ParamType,
pub required: bool,
pub description: String,
}Expand description
Schema for a single command parameter — drives validation, /help output,
and TUI argument autocomplete.
Fields§
§name: StringDisplay name (e.g. "username", "count").
param_type: ParamTypeWhat kind of value this parameter accepts.
required: boolWhether the parameter must be provided.
description: StringOne-line description shown in /help <command>.
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 moreAuto 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