pub struct ParamDef {
pub name: &'static str,
pub param_type: &'static str,
pub required: bool,
pub description: &'static str,
}Expand description
Parameter type for help=true schema envelopes.
Declares the name, type hint, required flag, and one-line description for
a single verb parameter. Stored as a &'static slice on HandlerDef so
the registry can return it without any allocation at call time.
The param_type field is a free-form string (e.g. "string", "uuid",
"bool", "integer", "string | null") — it is documentation-only and
not used for validation.
Fields§
§name: &'static strParameter name as used in the DSL (e.g. "id", "kind", "query").
param_type: &'static strFree-form type hint for documentation (e.g. "string", "uuid", "bool").
required: boolWhether the caller must supply this parameter.
description: &'static strOne-line human-readable description.
Trait Implementations§
impl Copy for ParamDef
impl Eq for ParamDef
impl StructuralPartialEq for ParamDef
Auto Trait Implementations§
impl Freeze for ParamDef
impl RefUnwindSafe for ParamDef
impl Send for ParamDef
impl Sync for ParamDef
impl Unpin for ParamDef
impl UnsafeUnpin for ParamDef
impl UnwindSafe for ParamDef
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