Enum twitch_oauth2::RequestParseError
source · pub enum RequestParseError {
DeserializeError(Error),
TwitchError(TwitchTokenErrorResponse),
NotJson {
found: String,
},
Other(StatusCode),
}
Expand description
Errors from parsing responses
Variants§
DeserializeError(Error)
deserialization failed
TwitchError(TwitchTokenErrorResponse)
twitch returned an error
NotJson
returned content is not application/json
, found {found}
Other(StatusCode)
twitch returned an unexpected status code: {0}
Trait Implementations§
source§impl Debug for RequestParseError
impl Debug for RequestParseError
source§impl Display for RequestParseError
impl Display for RequestParseError
source§impl Error for RequestParseError
impl Error for RequestParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for RequestParseError
impl From<Error> for RequestParseError
source§impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for AppAccessTokenError<RE>
impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for AppAccessTokenError<RE>
source§fn from(source: RequestParseError) -> Self
fn from(source: RequestParseError) -> Self
Converts to this type from the input type.
source§impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for RefreshTokenError<RE>
impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for RefreshTokenError<RE>
source§fn from(source: RequestParseError) -> Self
fn from(source: RequestParseError) -> Self
Converts to this type from the input type.
source§impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for RevokeTokenError<RE>
impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for RevokeTokenError<RE>
source§fn from(source: RequestParseError) -> Self
fn from(source: RequestParseError) -> Self
Converts to this type from the input type.
source§impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for UserTokenExchangeError<RE>
impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for UserTokenExchangeError<RE>
source§fn from(source: RequestParseError) -> Self
fn from(source: RequestParseError) -> Self
Converts to this type from the input type.
source§impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for ValidationError<RE>
impl<RE: Error + Send + Sync + 'static> From<RequestParseError> for ValidationError<RE>
source§fn from(source: RequestParseError) -> Self
fn from(source: RequestParseError) -> Self
Converts to this type from the input type.
source§impl From<TwitchTokenErrorResponse> for RequestParseError
impl From<TwitchTokenErrorResponse> for RequestParseError
source§fn from(source: TwitchTokenErrorResponse) -> Self
fn from(source: TwitchTokenErrorResponse) -> Self
Converts to this type from the input type.