mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
Merge pull request #762 from manorom/message-id-display
Derive Display Trait for MessageId type
This commit is contained in:
commit
45538db820
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
/// A unique message identifier.
|
/// 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")]
|
#[serde(from = "MessageIdRaw", into = "MessageIdRaw")]
|
||||||
pub struct MessageId(pub i32);
|
pub struct MessageId(pub i32);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue