pub trait OaSchema {
// Required method
fn schema() -> Schema;
// Provided method
fn schema_ref() -> ReferenceOr<Schema> { ... }
}
Required Methods§
Provided Methods§
fn schema_ref() -> ReferenceOr<Schema>
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.