Struct jtd_derive::schema::Schema
source · pub struct Schema {
pub metadata: Metadata,
pub ty: SchemaType,
pub nullable: bool,
}Expand description
A JSON Typedef schema.
Fields§
§metadata: MetadataThe metadata.
ty: SchemaTypeThe actual schema.
nullable: boolWhether 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.
source§impl PartialEq for Schema
impl PartialEq for Schema
impl Eq for Schema
impl StructuralEq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
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