Derive Display Trait for MessageId type

This commit is contained in:
manorom 2022-11-08 15:24:54 +01:00
parent 0df19e5fc9
commit 4f0a64e31e

View file

@ -1,7 +1,7 @@
use serde::{Deserialize, Serialize};
/// A unique message identifier.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[derive(Clone, Copy, Debug, derive_more::Display, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(from = "MessageIdRaw", into = "MessageIdRaw")]
pub struct MessageId(pub i32);