aboutsummaryrefslogtreecommitdiff
path: root/src/model/voice.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-01-01 15:55:46 -0800
committerZeyla Hellyer <[email protected]>2018-01-01 15:55:46 -0800
commit25dddb6695109eeead9e19593cb85a22096c2c7a (patch)
treed68d78d210a2804d10027035163871bf806c7e23 /src/model/voice.rs
parentGive hyper Response in HTTP errors (diff)
downloadserenity-25dddb6695109eeead9e19593cb85a22096c2c7a.tar.xz
serenity-25dddb6695109eeead9e19593cb85a22096c2c7a.zip
Implement or derive Serialize on all models
Diffstat (limited to 'src/model/voice.rs')
-rw-r--r--src/model/voice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/voice.rs b/src/model/voice.rs
index 558be4f..3eb968f 100644
--- a/src/model/voice.rs
+++ b/src/model/voice.rs
@@ -3,7 +3,7 @@
use super::id::{ChannelId, UserId};
/// Information about an available voice region.
-#[derive(Clone, Debug, Deserialize)]
+#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct VoiceRegion {
/// Whether it is a custom voice region, which is used for events.
pub custom: bool,
@@ -24,7 +24,7 @@ pub struct VoiceRegion {
}
/// A user's state within a voice channel.
-#[derive(Clone, Debug, Deserialize)]
+#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct VoiceState {
pub channel_id: Option<ChannelId>,
pub deaf: bool,