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