pub trait Reflection {
// Required method
fn schema(id: Id) -> Schema;
// Provided methods
fn ty() -> Type { ... }
fn name() -> Name { ... }
fn members() -> Schemas { ... }
fn schemata() -> Schema { ... }
}
Expand description
Reflects type’s fields’ names and their type names.
Required Methods§
Provided Methods§
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.