pub trait ParamType {
// Required method
fn schema() -> Json;
// Provided methods
fn variants() -> Vec<(&'static str, Vec<ParamInfo>)> { ... }
fn fields() -> Vec<ParamInfo> { ... }
}Expand description
The JSON Schema of the type of a parameter.
Required Methods§
Provided Methods§
Sourcefn variants() -> Vec<(&'static str, Vec<ParamInfo>)>
fn variants() -> Vec<(&'static str, Vec<ParamInfo>)>
The mappings a value of the type may be, by their type, each with its
parameters (ParamInfo::variants): none by default.
Sourcefn fields() -> Vec<ParamInfo>
fn fields() -> Vec<ParamInfo>
The keys of a value of the type that is a mapping of parameters
(ParamInfo::fields): none by default.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ParamType for Value
Any JSON value: a constellation name or mapping, a code, a list of taps…
impl ParamType for Value
Any JSON value: a constellation name or mapping, a code, a list of taps…