Derive From for ChatId again

This commit is contained in:
Waffle 2019-11-07 01:24:13 +03:00
parent 5f86362f17
commit 4177d20e54
2 changed files with 2 additions and 2 deletions

View file

@ -73,4 +73,4 @@ pub mod payloads {
send_animation::SendAnimation,
};
}
}

View file

@ -1,6 +1,6 @@
/// Unique identifier for the target chat or username of the target channel (in
/// the format `@channelusername`)
#[derive(Debug, Display, PartialEq, Eq, Hash, Clone, Deserialize, Serialize)]
#[derive(Debug, Display, PartialEq, Eq, Hash, Clone, Deserialize, Serialize, From)]
#[serde(untagged)]
pub enum ChatId {
/// chat identifier