Skip to main content

variants_schema

Function variants_schema 

Source
pub fn variants_schema(variants: &[(&'static str, Vec<ParamInfo>)]) -> Value
Expand description

The JSON Schema of a mapping with a type among variants, each with its parameters (their types, defaults, units, accepted values and bounds), for ParamType::schema.