Implement Serialize and Deserialize for MessageType.
This commit is contained in:
parent
1e1079a904
commit
cff81e625b
@ -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",
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user