Update src/types/message.rs

Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
This commit is contained in:
Temirkhan Myrzamadi 2019-12-12 00:36:36 +06:00 committed by GitHub
parent 999928787d
commit 6766ae3137
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ pub enum MessageKind {
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)] #[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub enum Sender { pub enum Sender {
/// If a message is sent from a chat. /// Sender of a message from chat.
#[serde(rename = "from")] #[serde(rename = "from")]
User(User), User(User),