From e58d40a765c5736b0b05cc8fd00e090e69b2e38c Mon Sep 17 00:00:00 2001 From: Waffle Date: Thu, 5 Sep 2019 18:44:08 +0300 Subject: [PATCH] Add `#[serde(untagged)]` to `ChatId` --- src/core/requests/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/requests/mod.rs b/src/core/requests/mod.rs index 9678056d..64da515b 100644 --- a/src/core/requests/mod.rs +++ b/src/core/requests/mod.rs @@ -54,6 +54,7 @@ pub struct RequestContext<'a> { /// Unique identifier for the target chat or username of the target channel (in /// the format @channelusername) #[derive(Debug, Display, Serialize, From, PartialEq, Eq, Clone)] +#[serde(untagged)] pub enum ChatId { /// chat identifier #[display(fmt = "{}", _0)]