Fix deserialization of command events to match new GBNF rules.

This commit is contained in:
projectmoon 2024-03-08 12:55:27 +01:00
parent 6fff4ecacd
commit f2faf258c4
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ pub struct VerbAndTargetEntry {
}
#[derive(Debug, Serialize, Deserialize, Clone, Gbnf)]
#[serde(rename_all = "camelCase")]
#[serde(rename_all = "snake_case")]
pub struct RawCommandExecution {
pub valid: bool,
pub reason: Option<String>,
@ -79,7 +79,7 @@ impl RawCommandExecution {
}
#[derive(Debug, Serialize, Deserialize, Clone, Gbnf)]
#[serde(rename_all = "camelCase")]
#[serde(rename_all = "snake_case")]
pub struct RawCommandEvent {
pub event_name: String,
#[gbnf_limit]