diff --git a/src/token.rs b/src/token.rs index 5c9cbd5..0cc2635 100644 --- a/src/token.rs +++ b/src/token.rs @@ -4,7 +4,7 @@ use rustc_serialize::{Encodable, Encoder, Decodable, Decoder}; /// OAuth 2.0 access token. /// /// See [RFC6749 section 5](http://tools.ietf.org/html/rfc6749#section-5). -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Token { /// The access token issued by the authorization server. pub access_token: String,