pub enum Params {
None,
Typed(Vec<ParamSpec>),
Text(&'static str),
Static(&'static [Param]),
}Expand description
How a command documents its parameters: typed (preferred, gives JSON Schema and validation) or the legacy free-text description older command tables use (accepted, validated loosely).
Variants§
None
Typed(Vec<ParamSpec>)
Text(&'static str)
Static(&'static [Param])
Typed, built in a const/static table (see Param).
Trait Implementations§
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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