pub trait TypeMetadata {
// Required method
fn metadata(registry: &mut TypeRegistry) -> FieldType;
}
Expand description
Exposes metadata about a type that can be used to generate other versions of that type in other languages.
This is usually intended to be derived rather than manually implemented.
Required Methods§
Sourcefn metadata(registry: &mut TypeRegistry) -> FieldType
fn metadata(registry: &mut TypeRegistry) -> FieldType
Populates TypeRegistry
with this type and any of it’s
contained types and returns a FieldType
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.