type_reflect 0.6.2

Extensible runtime reflection through a Derive macro
Documentation
1
2
3
4
5
6
7
8
9
10
use type_reflect_core::{type_description::TypeFieldsDefinition, Inflection};

/// A type implementing `StructType` can
/// be used to emit a struct representation
pub trait StructType {
    fn name() -> &'static str;
    fn inflection() -> Inflection;
    fn fields() -> TypeFieldsDefinition;
    fn rust() -> String;
}