pub trait IntuicioStruct {
// Required method
fn define_struct(registry: &Registry) -> Struct;
}Expand description
A Rust struct that can describe itself to a registry.
Implemented by the IntuicioStruct derive macro.
Required Methods§
Sourcefn define_struct(registry: &Registry) -> Struct
fn define_struct(registry: &Registry) -> Struct
Builds the runtime description of this struct.
registry is needed to look up the types of the fields, so every field
type has to be registered first.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".