Function bevy_macro_utils::get_named_struct_fields
source · [−]pub fn get_named_struct_fields(data: &Data) -> Result<&FieldsNamed>
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.