Trait lowertest::MzReflect[][src]

pub trait MzReflect {
    fn add_to_reflected_type_info(rti: &mut ReflectedTypeInfo);
}
Expand description

For to_json to create deserializable JSON for an instance of an type, the type must derive this trait.

Required methods

Adds names and types of the fields of the struct or enum to rti.

The corresponding implementation of this method will be recursively called for each type referenced by the struct or enum. Check out the crate README for more details.

Implementors