pub trait TypedItemSchema {
// Required method
fn schema() -> ItemSchema;
// Provided method
fn schema_version() -> u32 { ... }
}Expand description
Trait for typed item definitions that can expose static schema metadata.
Required Methods§
Sourcefn schema() -> ItemSchema
fn schema() -> ItemSchema
Returns the typed schema for the item.
Provided Methods§
Sourcefn schema_version() -> u32
fn schema_version() -> u32
Returns the schema version used by the item.
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.