TypedItemSchema

Trait TypedItemSchema 

Source
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§

Source

fn schema() -> ItemSchema

Returns the typed schema for the item.

Provided Methods§

Source

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.

Implementors§