pub enum Ty {
Str,
Int,
Float,
Bool,
Any,
Unit,
List(Box<Ty>),
Map(Box<Ty>),
Optional(Box<Ty>),
Named(String),
Union(Vec<Ty>),
Literal(Vec<String>),
}Expand description
A wire type, lowered from JSON Schema.
Variants§
Str
Int
Float
Bool
Any
An open schema — a gap, serde_json::Value, or anything else the
source could not pin down.
Unit
No body at all.
List(Box<Ty>)
Map(Box<Ty>)
String-keyed map with uniform values.
Optional(Box<Ty>)
Named(String)
A named component model.
Union(Vec<Ty>)
oneOf arms, matched structurally when decoding.
Literal(Vec<String>)
A closed set of string values.
Trait Implementations§
impl Eq for Ty
impl StructuralPartialEq for Ty
Auto Trait Implementations§
impl Freeze for Ty
impl RefUnwindSafe for Ty
impl Send for Ty
impl Sync for Ty
impl Unpin for Ty
impl UnsafeUnpin for Ty
impl UnwindSafe for Ty
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