pub type VerbDef = HandlerDef;👎Deprecated since 0.2.0:
Use HandlerDef instead
Expand description
Backward-compatible type alias. Existing code that names VerbDef still
compiles; new code should use HandlerDef directly.
Aliased Type§
pub struct VerbDef {
pub name: &'static str,
pub description: &'static str,
pub visibility: Visibility,
pub category: VerbCategory,
pub params: &'static [ParamDef],
}Fields§
§name: &'static str§description: &'static str§visibility: Visibility§category: VerbCategoryIllocutionary force classification. Use Assertive for Subhandler
entries that have no external callers.
params: &'static [ParamDef]Parameter schema for help=true introspection (issue #287).
Empty (&[]) is the correct default for handlers that predate this
field or have no fixed parameter schema (e.g. free-form query verbs).