pub enum Schema {
}Variants§
String
Number
Boolean
Null
Any
v.unknown() and jsonSchema.
Literal(&'static str)
Array(Box<Schema>)
NonEmptyArray(Box<Schema>)
v.tuple([s]).concat(v.array(s)).
Tuple(Vec<Schema>)
Record(Box<Schema>)
Object(Vec<(&'static str, Field)>)
Union(Vec<Schema>)
Nullable(Box<Schema>)
Custom(fn(&Value) -> Result<Value>)
A schema with a Rust decoder; returns the decoded value’s JSON.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Schema
impl Freeze for Schema
impl Move for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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