Fix deserialization of command events to match new GBNF rules.
This commit is contained in:
parent
6fff4ecacd
commit
f2faf258c4
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue