pub enum Validation {
Strict,
TypedOnly,
Off,
}Expand description
Which declarations Registry::execute checks params against before Host::enabled_for
(set with Registry::with_validation). Whatever the policy, Host::validate runs at the
same step, and Registry::validate stays available for checking on demand.
Variants§
Strict
Every declaration: typed params fully, legacy text docs loosely (keys the doc clearly does not mention, non-object params). The default.
TypedOnly
Only typed declarations (Params::Typed, Params::Static); legacy text docs and
Params::None accept anything. For a table whose text docs are descriptions, not contracts.
Off
None at the chokepoint: a call goes straight to Host::enabled_for, so a disabled
command reports Disabled whatever its params. The host validates where it wants to
(Host::validate, or Registry::validate from its own code).