diff options
| author | acdenisSK <[email protected]> | 2017-07-10 17:22:02 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-10 17:22:02 +0200 |
| commit | 64bfc5471808cff59c9b4b5eef80a756f13ff5be (patch) | |
| tree | a6150f3caa6e8192bad0fe30d84b4d8e03eabe8d /src/model/user.rs | |
| parent | Add a way to return all online members in a guild (diff) | |
| download | serenity-64bfc5471808cff59c9b4b5eef80a756f13ff5be.tar.xz serenity-64bfc5471808cff59c9b4b5eef80a756f13ff5be.zip | |
Make `User` and `Ban` comparable and hashable
Diffstat (limited to 'src/model/user.rs')
| -rw-r--r-- | src/model/user.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |