Struct oauth2::ErrorResponse

source ·
pub struct ErrorResponse<T: ErrorResponseType> { /* private fields */ }
Expand description

Error response returned by server after requesting an access token.

The fields in this structure are defined in Section 5.2 of RFC 6749. This trait is parameterized by a ErrorResponseType to support error types specific to future OAuth2 authentication schemes and extensions.

Implementations§

REQUIRED. A single ASCII error code deserialized to the generic parameter ErrorResponseType.

OPTIONAL. Human-readable ASCII text providing additional information, used to assist the client developer in understanding the error that occurred.

OPTIONAL. A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.