Trait go_away::TypeMetadata [−][src]
pub trait TypeMetadata {
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
fn 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