Derive Eq for OAuth2Error
This commit is contained in:
parent
db058fffdf
commit
fbfb2fa284
|
@ -10,7 +10,7 @@ use client::response::{FromResponse, ParseError, JsonHelper};
|
|||
/// OAuth 2.0 error codes.
|
||||
///
|
||||
/// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
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
|
||||
|
@ -57,7 +57,7 @@ impl<'a> From<&'a str> for OAuth2ErrorCode {
|
|||
/// OAuth 2.0 error.
|
||||
///
|
||||
/// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub struct OAuth2Error {
|
||||
/// Error code.
|
||||
pub code: OAuth2ErrorCode,
|
||||
|
|
Loading…
Reference in New Issue