Enum twitch_api2::helix::HelixRequestGetError [−][src]
pub enum HelixRequestGetError { Error { error: String, status: StatusCode, message: String, uri: Uri, }, Utf8Error(Vec<u8>, Utf8Error, Uri), DeserializeError(String, Error<Error>, Uri), InvalidUri(InvalidUri), InvalidResponse { reason: &'static str, response: String, status: StatusCode, uri: Uri, }, }
This is supported on crate feature
helix
only.Could not parse GET response
Variants
helix returned error {status:?} - {error}: {message:?} when calling GET {uri}
Show fields
Fields of Error
error: String
Error message related to status code
status: StatusCode
Status code of error, usually 400-499
message: String
Error message from Twitch
uri: Uri
URI to the endpoint
could not parse response as utf8 when calling GET {2}
deserialization failed when processing request response calling GET {2}
with response: {0:?}
InvalidUri(InvalidUri)
could not get URI for request
invalid or unexpected response from twitch.
Show fields
Fields of InvalidResponse
reason: &'static str
Reason for error
response: String
Response text
status: StatusCode
Status Code
uri: Uri
Uri to endpoint
Trait Implementations
impl Display for HelixRequestGetError
[src]
impl Display for HelixRequestGetError
[src]impl Error for HelixRequestGetError
[src]
impl Error for HelixRequestGetError
[src]impl<RE: Error + Send + Sync + 'static> From<HelixRequestGetError> for ClientRequestError<RE>
[src]
impl<RE: Error + Send + Sync + 'static> From<HelixRequestGetError> for ClientRequestError<RE>
[src]fn from(source: HelixRequestGetError) -> Self
[src]
impl From<InvalidUri> for HelixRequestGetError
[src]
impl From<InvalidUri> for HelixRequestGetError
[src]fn from(source: InvalidUri) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for HelixRequestGetError
impl !RefUnwindSafe for HelixRequestGetError
impl Send for HelixRequestGetError
impl Send for HelixRequestGetError
impl Sync for HelixRequestGetError
impl Sync for HelixRequestGetError
impl Unpin for HelixRequestGetError
impl Unpin for HelixRequestGetError
impl !UnwindSafe for HelixRequestGetError
impl !UnwindSafe for HelixRequestGetError
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,