Parse the message
Depends on D15269
Tested later in the stack
We're putting these types here because in the next diff they will be sent to clients
thanks for fixing that
I would try to type this too, maybe something like:
#[derive(Serialize, Deserialize, Debug, PartialEq)] #[serde(rename_all = "camelCase")] pub enum MessageType { RefreshDirectCastConversation, RefreshSelfDirectCastsInbox, Unseen, #[serde(other)] // handles any unknown variants Unknown, }
should work?
This could improve readability and avoid hardcoded strings, but up to you
Use enum
Nice