SchemaMeta

Trait SchemaMeta 

Source
pub trait SchemaMeta {
    // Required methods
    fn get_fields() -> &'static [Field];
    fn get_name() -> &'static str;
}
Expand description

Used to retreive meta information for a struct

Required Methods§

Source

fn get_fields() -> &'static [Field]

Return the (name, type) of every field

Source

fn get_name() -> &'static str

Return the name of Self

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§