aboutsummaryrefslogtreecommitdiff
path: root/src/model/misc.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-15 11:36:53 -0800
committerAustin Hellyer <[email protected]>2016-11-15 11:36:53 -0800
commit5ccfaaa3b1a030b1fd0dcd364bdae001347d36e4 (patch)
tree7cf531e4790109d6d7edd26bc5b483378d5ba5ac /src/model/misc.rs
parentEmbed Author: everything but 'name' is optional (diff)
downloadserenity-5ccfaaa3b1a030b1fd0dcd364bdae001347d36e4.tar.xz
serenity-5ccfaaa3b1a030b1fd0dcd364bdae001347d36e4.zip
Add state/framework/etc. conditional compile flags
This adds conditional compilation for the following features, in addition to the voice conditional compilation flag: - extras (message builder) - framework - methods - state These 4 are enabled _by default_, while the `voice` feature flag is disabled. Disabling the state will allow incredibly low-memory bots.
Diffstat (limited to 'src/model/misc.rs')
-rw-r--r--src/model/misc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/misc.rs b/src/model/misc.rs
index 16cc7fe..3a17d96 100644
--- a/src/model/misc.rs
+++ b/src/model/misc.rs
@@ -89,6 +89,7 @@ impl fmt::Display for Mention {
}
impl IncidentStatus {
+ #[doc(hidden)]
pub fn decode(value: Value) -> Result<Self> {
Self::decode_str(value)
}