Trait StructType

Source
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§

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.

Implementors§