Derive PartialEq, Eq for Token

This commit is contained in:
Curtis McEnroe 2015-11-29 15:54:21 -05:00
parent b5a56ff97e
commit 57af517929
1 changed files with 1 additions and 1 deletions

View File

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