Implement Serialize and Deserialize for MessageType.

This commit is contained in:
Jimmy Cuadra 2016-07-30 11:56:44 -07:00
parent 1e1079a904
commit cff81e625b

View File

@ -206,3 +206,16 @@ pub struct VideoInfo {
/// The width of the video in pixels.
pub w: Option<u64>,
}
impl_enum! {
MessageType {
Audio => "audio",
Emote => "emote",
File => "file",
Image => "image",
Location => "location",
Notice => "notice",
Text => "text",
Video => "video",
}
}