pub enum ParamKind {
Bool,
Int {
min: Option<i64>,
max: Option<i64>,
},
Float {
min: Option<f64>,
max: Option<f64>,
},
String,
Enum {
values: Vec<String>,
},
Json,
}Expand description
CONTRACT: the kind of one typed parameter. Maps 1:1 onto JSON Schema.
Variants§
Bool
Int
Float
String
Enum
One of a fixed set of strings.
Json
Free JSON (object, array…) described in about.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParamKind
impl<'de> Deserialize<'de> for ParamKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnsafeUnpin for ParamKind
impl UnwindSafe for ParamKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more