In this case, you can use #[serde(rename = "type")] in the field and use the ... #[derive(Debug)] enum DateType { FirstType, SecondType, } #[derive(Debug, ...
確定! 回上一頁