Struct oauth2::StandardErrorResponse [−][src]
pub struct StandardErrorResponse<T: ErrorResponseType> { /* fields omitted */ }
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
Instantiate a new ErrorResponse
.
Arguments
error
- REQUIRED. A single ASCII error code deserialized to the generic parameter.ErrorResponseType
.error_description
- OPTIONAL. Human-readable ASCII text providing additional information, used to assist the client developer in understanding the error that occurred. Values for this parameter MUST NOT include characters outside the set%x20-21 / %x23-5B / %x5D-7E
.error_uri
- 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. Values for the “error_uri” parameter MUST conform to the URI-reference syntax and thus MUST NOT include characters outside the set%x21 / %x23-5B / %x5D-7E
.
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. Values for this
parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E
.
OPTIONAL. URI identifying a human-readable web page with information about the error,
used to provide the client developer with additional information about the error.
Values for the “error_uri” parameter MUST conform to the URI-reference syntax and
thus MUST NOT include characters outside the set %x21 / %x23-5B / %x5D-7E
.
Trait Implementations
impl<'de, T: ErrorResponseType> Deserialize<'de> for StandardErrorResponse<T> where
T: ErrorResponseType,
impl<'de, T: ErrorResponseType> Deserialize<'de> for StandardErrorResponse<T> where
T: ErrorResponseType,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: PartialEq + ErrorResponseType> PartialEq<StandardErrorResponse<T>> for StandardErrorResponse<T>
impl<T: PartialEq + ErrorResponseType> PartialEq<StandardErrorResponse<T>> for StandardErrorResponse<T>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for StandardErrorResponse<T> where
T: RefUnwindSafe,
impl<T> Send for StandardErrorResponse<T> where
T: Send,
impl<T> Sync for StandardErrorResponse<T> where
T: Sync,
impl<T> Unpin for StandardErrorResponse<T> where
T: Unpin,
impl<T> UnwindSafe for StandardErrorResponse<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more