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§
- Boolean
Parameter - A parameter that observes a
bool. - Derived
Parameter - A parameter whose value is computed from other already-bound values
by an
Expression. - Double
Parameter - A parameter that observes an
f64. - Integer
Parameter - A parameter that observes an
i64. - Selection
Parameter - A parameter whose value is an ordered multi-item selection.
- String
Parameter - A parameter that observes a
String.
Enums§
- Parameter
- Kind-tagged parameter.
- Parameter
Error - Errors from parameter construction and builder-style setters.