Skip to main content

struct_fields

Function struct_fields 

Source
pub fn struct_fields(
    sources: &[String],
    name: &str,
) -> Option<Vec<(String, String, String)>>
Expand description

The exported fields of struct type name: (field, Go type, JSON key). None when the type is not a plain struct (embedded fields, or not found).