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.