pub fn struct_field_names<T: for<'de> Deserialize<'de>>() -> Option<&'static [&'static str]>Expand description
Returns the field names of T as they appear in input data, after rename
and rename_all, for a plain derive(Deserialize) struct. Returns None
for a struct with #[serde(flatten)], an enum, a newtype, or a hand-written
impl.
A field with #[serde(alias)] appears only under its primary name. Serde’s
derive does not include aliases in that name list. Callers that classify
input keys against this list will treat an alias as unknown.