Skip to main content

Module parameter

Module parameter 

Source
Expand description

Parameters.

The five concrete parameter kinds from SRD-0004 — IntegerParameter, DoubleParameter, BooleanParameter, StringParameter, SelectionParameter — plus DerivedParameter (values computed from an Expression). The outer Parameter enum dispatches name, kind, labels, tags, default, generation, and validation across variants.

Constructors validate the inputs (range order, domain non-emptiness, max-selections ≥ 1, …). Builder-style setters (with_default, with_constraint, with_label, with_tag) return Result<Self> when they can fail — with_default rejects a default outside the domain or violating a registered constraint; with_label/with_tag reject keys that already live on the other tier (namespace uniqueness per SRD-0005 D5).

Structs§

BooleanParameter
A parameter that observes a bool.
DerivedParameter
A parameter whose value is computed from other already-bound values by an Expression.
DoubleParameter
A parameter that observes an f64.
IntegerParameter
A parameter that observes an i64.
SelectionParameter
A parameter whose value is an ordered multi-item selection.
StringParameter
A parameter that observes a String.

Enums§

Parameter
Kind-tagged parameter.
ParameterError
Errors from parameter construction and builder-style setters.