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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.