diff --git a/src/instance.rs b/src/instance.rs index 8e160b8..fc0bcda 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -131,6 +131,16 @@ pub struct ChorusUser { pub gateway: GatewayHandle, } +impl PartialEq for ChorusUser { + fn eq(&self, other: &Self) -> bool { + self.token == other.token + && self.limits == other.limits + && self.gateway.url == other.gateway.url + } +} + +impl Eq for ChorusUser {} + impl ChorusUser { pub fn token(&self) -> String { self.token.clone()