pub trait RustApiSchema {
// Required method
fn schema(ctx: &mut SchemaCtx) -> SchemaRef;
// Provided methods
fn component_name() -> Option<&'static str> { ... }
fn field_schemas(
_ctx: &mut SchemaCtx,
) -> Option<BTreeMap<String, SchemaRef>> { ... }
}Required Methods§
Provided Methods§
fn component_name() -> Option<&'static str>
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.