impl PartialEq for ChorusUser
This commit is contained in:
parent
741b6d6978
commit
5f41f57e77
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue