1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

usermessagetype eq

This commit is contained in:
Robin Appelman 2022-04-21 19:22:43 +02:00
commit d36a5516e5

View file

@ -71,6 +71,12 @@ pub enum UserMessageType {
Unknown = 255,
}
impl PartialEq<u8> for UserMessageType {
fn eq(&self, other: &u8) -> bool {
*self as u8 == *other
}
}
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
#[serde(bound(deserialize = "'a: 'static"))]