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.
|
/// OAuth 2.0 error codes.
|
||||||
///
|
///
|
||||||
/// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
/// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
||||||
#[derive(Debug)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
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
|
||||||
|
@ -57,7 +57,7 @@ impl<'a> From<&'a str> for OAuth2ErrorCode {
|
||||||
/// OAuth 2.0 error.
|
/// OAuth 2.0 error.
|
||||||
///
|
///
|
||||||
/// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
/// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2).
|
||||||
#[derive(Debug)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub struct OAuth2Error {
|
pub struct OAuth2Error {
|
||||||
/// Error code.
|
/// Error code.
|
||||||
pub code: OAuth2ErrorCode,
|
pub code: OAuth2ErrorCode,
|
||||||
|
|
Loading…
Reference in New Issue