aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-09-09 18:01:35 +0200
committeracdenisSK <[email protected]>2017-09-09 18:01:56 +0200
commit192ac8aec0afb33055352ed6e6838c506cbbbf8c (patch)
treecd215601757db37ccac5b52d1a2ee1373666e5d5 /src
parentApply rustfmt + fix tests (diff)
downloadserenity-192ac8aec0afb33055352ed6e6838c506cbbbf8c.tar.xz
serenity-192ac8aec0afb33055352ed6e6838c506cbbbf8c.zip
serde rename `kind` to `type`
Diffstat (limited to 'src')
-rw-r--r--src/model/channel/channel_category.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/channel/channel_category.rs b/src/model/channel/channel_category.rs
index 29f6b36..9a56234 100644
--- a/src/model/channel/channel_category.rs
+++ b/src/model/channel/channel_category.rs
@@ -20,6 +20,7 @@ pub struct ChannelCategory {
/// This should always be [`ChannelType::Category`].
///
/// [`ChannelType::Category`]: enum.ChannelType.html#variant.Category
+ #[serde(rename = "type")]
pub kind: ChannelType,
/// The name of the category.
pub name: String,