pub enum Desc {
Bool,
Int {
min: Option<i64>,
max: Option<i64>,
},
Float {
min: Option<f64>,
max: Option<f64>,
},
String {
variants: Option<Vec<String>>,
},
List {
elem_desc: Option<Box<Desc>>,
},
Map {
value_desc: Option<Box<Desc>>,
},
}
Expand description
Top-level descriptio of a value.
Variants§
Bool
A boolean value.
Int
An integer value.
Float
A floating-point value.
String
A string value.
List
A list of values.
Map
A map of key-value pairs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Desc
impl RefUnwindSafe for Desc
impl Send for Desc
impl Sync for Desc
impl Unpin for Desc
impl UnwindSafe for Desc
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