Trait jtd_derive::JsonTypedef
source · 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§
Provided Methods§
sourcefn referenceable() -> bool
fn referenceable() -> bool
Returns true if this type can appear in the top-level definitions
and be referenced using the “ref” form.