pub enum Kind {
String,
Integer,
Number,
Boolean,
Enum(Vec<String>),
Array(Box<Kind>),
Object,
Any,
}Expand description
The value type a config path takes, per its JSON Schema.
Variants§
String
Integer
Number
Boolean
Enum(Vec<String>)
A closed string set — the allowed values, checked at coercion time.
Array(Box<Kind>)
A list; the item kind types each comma-separated / literal element.
Object
A free-form object (a map with additionalProperties, or an array item
object): set from a {…} literal.
Any
Untyped — parsed as an inline YAML/JSON value.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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