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