fix: old_name -> oldName
This commit is contained in:
parent
ddcbbf274e
commit
762aef0426
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,7 @@ pub mod ws {
|
|||
|
||||
// TODO can i avoid repeating id,timestamp,user in each msg type??
|
||||
#[derive(Debug, serde::Deserialize)]
|
||||
#[serde(tag = "type", rename_all = "camelCase")]
|
||||
#[serde(tag = "type")]
|
||||
pub enum EventInner {
|
||||
#[serde(rename = "CHAT")]
|
||||
Chat {
|
||||
|
@ -61,6 +61,7 @@ pub mod ws {
|
|||
},
|
||||
#[serde(rename = "NAME_CHANGE")]
|
||||
NameChange {
|
||||
#[serde(rename = "oldName")]
|
||||
old_name: String,
|
||||
user: User,
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue