struct_field_names_as_array
struct_field_names_as_array copied to clipboard
Procedural macro that generates an array of the field names of a named struct
I'm using generics and based on the generic type i need the field names, but right now i can't do a T::FIELD_NAMES_AS_ARRAY because there's no way for me to say...
Make feature documentation better. I want to add these banners that `syn` or `tokio` have. Also find out how to document features so that the banner on the "`docs.rs` features"...
Write unit tests for the utility functions of the derive macros.
given ``` #[derive(FieldNamesAsArray)] struct StructA { a: String, b: StructB } struct StructB { c: String, d: String } ``` We shall have this: `assert_eq!(StructA::FIELD_NAMES_AS_ARRAY, ["a", "b.c", "b.d"]);` But at...
I'd like to ensure statically that the user of my library will not be sending completely wrong/typo'd data through my library to the network peer when he chooses which struct...
Can I apply this to create an array/slice with flattened fields? * https://users.rust-lang.org/t/expanding-const-str-arrays/126374/4?u=jofas * https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=427a99aff416d3e5e048d7b86bbdf986