field_types
field_types copied to clipboard
Some derive macros for deriving enums, corresponding to the fields of structs.
I have a struct similar to this. ```rs use serde::{Deserialize, Serialize}; #[derive(FieldName)] #[field_name_derive(Serialize, Deserialize)] pub struct Test { pub snake_case: String, } ``` which generates: ```rs #[field_name_derive(Serialize, Deserialize)] pub struct...
Can you please add an attribute to override the visibility of the generated enum and functions (currently, it’s inherited from the given struct)?
If not... will you ever be able to? ```rust struct Foo { bar: usize, } ... let foo = Foo { bar: 1 }; for member in Foo::as_field_name_array() { foo[member]...