Derive Debug and Clone where possible

This commit is contained in:
Curtis McEnroe 2015-11-28 23:38:59 -05:00
parent efbf433025
commit 353f3509f0
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ use url;
/// OAuth 2.0 error codes.
///
/// See [RFC6749 section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum OAuth2ErrorCode {
/// The request is missing a required parameter, includes an unsupported parameter value (other
/// than grant type), repeats a parameter, includes multiple credentials, utilizes more than
@ -40,7 +40,7 @@ pub enum OAuth2ErrorCode {
/// OAuth 2.0 error.
///
/// See [RFC6749 section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct OAuth2Error {
/// Error code.
pub code: OAuth2ErrorCode,

View File

@ -3,7 +3,7 @@ use chrono::{DateTime, UTC};
/// OAuth 2.0 access token.
///
/// See [RFC6749 section 5](http://tools.ietf.org/html/rfc6749#section-5).
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Token {
/// The access token issued by the authorization server.
pub access_token: String,