pub struct Schema {
pub metadata: Metadata,
pub ty: SchemaType,
pub nullable: bool,
}
Expand description
A JSON Typedef schema.
Fields§
§metadata: Metadata
The metadata.
ty: SchemaType
The actual schema.
nullable: bool
Whether this schema is nullable.
Trait Implementations§
Source§impl Default for Schema
impl Default for Schema
Source§fn default() -> Self
fn default() -> Self
Provides an empty schema. Empty schemas accept any JSON data.
impl Eq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin 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