Trait lowertest::MzStructReflect[][src]

pub trait MzStructReflect {
    fn mz_struct_reflect() -> (Vec<&'static str>, Vec<&'static str>);
}
Expand description

A trait for listing the fields of a struct.

The information listed about the fields help build a JSON string that can be correctly deserialized into the struct.

Required methods

Returns the fields of a struct.

The first vector comprises the names of the struct’s fields. It is empty if the struct has no fields or if the struct’s fields are unnamed.

The second vector comprises the types of the struct’s fields. It is empty if the struct has no fields.

Implementors