mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add #[serde(untagged)]
to ChatId
This commit is contained in:
parent
17a26aec7b
commit
e58d40a765
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ pub struct RequestContext<'a> {
|
||||||
/// Unique identifier for the target chat or username of the target channel (in
|
/// Unique identifier for the target chat or username of the target channel (in
|
||||||
/// the format @channelusername)
|
/// the format @channelusername)
|
||||||
#[derive(Debug, Display, Serialize, From, PartialEq, Eq, Clone)]
|
#[derive(Debug, Display, Serialize, From, PartialEq, Eq, Clone)]
|
||||||
|
#[serde(untagged)]
|
||||||
pub enum ChatId {
|
pub enum ChatId {
|
||||||
/// chat identifier
|
/// chat identifier
|
||||||
#[display(fmt = "{}", _0)]
|
#[display(fmt = "{}", _0)]
|
||||||
|
|
Loading…
Reference in a new issue