derive_struct_fields 0.1.1

A simple way to work with struct fields programmatically.
Documentation
1
2
3
4
5
6
7
8
pub struct StructFieldInfo {
    pub name: &'static str,
    pub field_type: &'static str,
}
pub trait StructFields {
    fn struct_fields() -> Vec<StructFieldInfo>;
    fn struct_field_names() -> Vec<String>;
}