get_struct_fields

Function get_struct_fields 

Source
pub fn get_struct_fields<'a>(
    data: &'a Data,
    meta: &str,
) -> Result<&'a 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.

meta should be the name of the macro calling this function.