Unknown
The SchemaType::Unknown variant can be used to represent an unknown type. This is
sometimes known as an “any” or “mixed” type.
#![allow(unused)]
fn main() {
use schematic::{Schematic, Schema, SchemaBuilder, SchemaType};
impl Schematic for T {
fn build_schema(mut schema: SchemaBuilder) -> Schema {
schema.build()
}
}
}
The SchemaType::Unknown variant is also the default variant, and the default
implementation for
Schematic::build_schema(),
so the above can simply be written as:
#![allow(unused)]
fn main() {
impl Schematic for T {}
}