diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/guild/mod.rs | 2 | ||||
| -rw-r--r-- | src/model/user.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index 03aa07e..2858a86 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -30,7 +30,7 @@ use ::builder::{EditGuild, EditMember, EditRole}; use ::constants::LARGE_THRESHOLD; /// A representation of a banning of a user. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Hash)] pub struct Ban { /// The reason given for this ban. pub reason: Option<String>, diff --git a/src/model/user.rs b/src/model/user.rs index c53b823..9c248ba 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -366,7 +366,7 @@ impl Default for OnlineStatus { } /// Information about a user. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Hash)] pub struct User { /// The unique Id of the user. Can be used to calculate the account's /// cration date. |