pub struct ParamDef {
pub name: &'static str,
pub param_type: &'static str,
pub required: bool,
pub description: &'static str,
pub resolution_mode: IdResolutionMode,
}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 drawn from a closed vocabulary (e.g. "string",
"uuid", "boolean", "integer"), asserted as an exact set by a
registry-wide test. It does not validate the argument, but it is not
documentation-only either: the runtime derives each verb’s published JSON
Schema from it, so an unmapped spelling withholds that verb’s schema.
Fields§
§name: &'static strParameter name as used in the DSL (e.g. "id", "kind", "query").
param_type: &'static strType hint from the closed vocabulary (e.g. "string", "uuid", "boolean").
required: boolWhether the caller must supply this parameter.
description: &'static strOne-line human-readable description.
resolution_mode: IdResolutionModeIdentifier-resolution mode for param_type "uuid" or "array of uuid" parameters; IdResolutionMode::NotApplicable for every
other parameter type.