pub trait StructType {
// Required methods
fn name() -> &'static str;
fn inflection() -> Inflection;
fn fields() -> TypeFieldsDefinition;
fn rust() -> String;
}Expand description
A type implementing StructType can
be used to emit a struct representation
Required Methods§
fn name() -> &'static str
fn inflection() -> Inflection
fn fields() -> TypeFieldsDefinition
fn rust() -> String
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.