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§
Sourcefn get_fields() -> &'static [Field]
fn get_fields() -> &'static [Field]
Return the (name, type) of every field
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.