pub trait JsonTypedef {
    fn schema(generator: &mut Generator) -> Schema;
    fn names() -> Names;

    fn referenceable() -> bool { ... }
}
Expand description

Types that have an associated Typedef schema.

Required Methods§

Generate the Schema for the implementor type, according to how the Generator is configured.

Returns info about how to refer to this type within the Typedef schema. Mostly used to generate a name for the top-level definitions.

Provided Methods§

Returns true if this type can appear in the top-level definitions and be referenced using the “ref” form.

Implementations on Foreign Types§

Implementors§