Implement Clone on ForwardKind, ForwardedFrom, MediaKind and ChatKind

This commit is contained in:
Waffle 2019-09-07 21:30:56 +03:00
parent 015b7ee5d4
commit e1a4036d82
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ pub struct Chat {
}
#[derive(Debug, Deserialize, Eq, Hash, PartialEq)]
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Clone)]
#[serde(untagged)]
pub enum ChatKind {
NonPrivate {

View file

@ -72,7 +72,7 @@ pub enum MessageKind {
},
}
#[derive(Debug, Deserialize, Eq, Hash, PartialEq)]
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Clone)]
#[serde(untagged)]
pub enum ForwardKind {
ChannelForward {
@ -96,7 +96,7 @@ pub enum ForwardKind {
},
}
#[derive(Debug, Deserialize, Eq, Hash, PartialEq)]
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Clone)]
pub enum ForwardedFrom {
#[serde(rename = "forward_from")]
User(User),
@ -104,7 +104,7 @@ pub enum ForwardedFrom {
SenderName(String),
}
#[derive(Debug, Deserialize, Eq, Hash, PartialEq)]
#[derive(Debug, Deserialize, Eq, Hash, PartialEq, Clone)]
#[serde(untagged)]
pub enum MediaKind {
Animation {