1 2 3 4 5 6 7 8 9 10 11
#[derive(serde::Deserialize)] #[serde(rename_all = "snake_case")] pub struct Config { pub commands: Vec<Command>, } #[derive(serde::Deserialize)] #[serde(rename_all = "snake_case")] pub struct Command { pub command: String, }