1 use serde_derive::Serialize; 2 3 #[derive(Serialize)] 4 struct S { 5 #[serde(rename = 3.14)] 6 float: (), 7 } 8 mainnull9 fn main() {} 10