pub fn get_struct_fields(data: &Data) -> Result<&Punctuated<Field, Comma>>
Expand description
Get the fields of a data structure if that structure is a struct with named fields; otherwise, return a compile error that points to the site of the macro invocation.