Skip to main content

names

Function names 

Source
pub fn names<'de, T: Deserialize<'de>>() -> &'static [&'static str]
Expand description

T 认得的顶层字段名(serde 重命名之后的)。T 必须是不带 flatten 的派生结构体, 否则返回空表(带 flatten 的结构体走的是 map,没有字段表)。