Derive Debug and Clone where possible
This commit is contained in:
parent
efbf433025
commit
353f3509f0
|
@ -7,7 +7,7 @@ use url;
|
||||||
/// OAuth 2.0 error codes.
|
/// OAuth 2.0 error codes.
|
||||||
///
|
///
|
||||||
/// See [RFC6749 section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
/// See [RFC6749 section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum OAuth2ErrorCode {
|
pub enum OAuth2ErrorCode {
|
||||||
/// The request is missing a required parameter, includes an unsupported parameter value (other
|
/// 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
|
/// than grant type), repeats a parameter, includes multiple credentials, utilizes more than
|
||||||
|
@ -40,7 +40,7 @@ pub enum OAuth2ErrorCode {
|
||||||
/// OAuth 2.0 error.
|
/// OAuth 2.0 error.
|
||||||
///
|
///
|
||||||
/// See [RFC6749 section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
/// See [RFC6749 section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct OAuth2Error {
|
pub struct OAuth2Error {
|
||||||
/// Error code.
|
/// Error code.
|
||||||
pub code: OAuth2ErrorCode,
|
pub code: OAuth2ErrorCode,
|
||||||
|
|
|
@ -3,7 +3,7 @@ use chrono::{DateTime, UTC};
|
||||||
/// 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)]
|
#[derive(Debug, Clone)]
|
||||||
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,
|
||||||
|
|
Loading…
Reference in New Issue