Trait jtd_derive::JsonTypedef
source · pub trait JsonTypedef {
// Required methods
fn schema(generator: &mut Generator) -> Schema;
fn names() -> Names;
// Provided method
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.
Object Safety§
This trait is not object safe.