Enum twitch_oauth2::RequestParseError [−][src]
pub enum RequestParseError { DeserializeError(Error), TwitchError(TwitchTokenErrorResponse), NotJson { found: String, }, Other(StatusCode), }
Expand description
Errors from [parse_response
]
Variants
deserialization failed
Tuple Fields of DeserializeError
0: Error
twitch returned an error
Tuple Fields of TwitchError
returned content is not application/json
, found {found}
Fields of NotJson
found: String
Found Content-Type
header
twitch returned an unexpected status code: {0}
Tuple Fields of Other
0: StatusCode
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RequestParseError
impl Send for RequestParseError
impl Sync for RequestParseError
impl Unpin for RequestParseError
impl !UnwindSafe for RequestParseError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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