[][src]Enum twitch_api2::helix::RequestError

pub enum RequestError {
    UrlParseError(ParseError),
    IOError(Error),
    DeserializeError(Error),
    QuerySerializeError(Error),
    RequestError(Error),
    NoPage,
    PatchParseError(Cow<'static, str>),
    Custom(Cow<'static, str>),
    HelixRequestGetError {
        error: String,
        status: StatusCode,
        message: String,
        url: Url,
    },
    HelixRequestPutError {
        error: String,
        status: StatusCode,
        message: String,
        url: Url,
        body: String,
    },
    HelixRequestPatchError {
        status: StatusCode,
        message: String,
        url: Url,
        body: String,
    },
}

Errors for HelixClient::req_get and similar functions.

Variants

UrlParseError(ParseError)

url could not be parsed

IOError(Error)

io error

DeserializeError(Error)

deserialization failed when processing request result

QuerySerializeError(Error)

Could not serialize request to query

RequestError(Error)

request failed from reqwests side

NoPage

no pagination found

PatchParseError(Cow<'static, str>)

could not parse response from patch: {0}

Custom(Cow<'static, str>)

{0}

HelixRequestGetError

helix returned error {status:?} - {error}: {message:?} when calling GET {url}

Fields of HelixRequestGetError

error: String

Error message related to status code

status: StatusCode

Status code of error, usually 400-499

message: String

Error message from Twitch

url: Url

URL to the endpoint

HelixRequestPutError

helix returned error {status:?} - {error}: {message:?} when calling PUT {url}: "{body}"

Fields of HelixRequestPutError

error: String

Error message related to status code

status: StatusCode

Status code of error, usually 400-499

message: String

Error message from Twitch

url: Url

URL to the endpoint

body: String

Body sent with PUT

HelixRequestPatchError

helix returned error {status:?}: {message:?} when calling PATCH {url}: "{body}"

Fields of HelixRequestPatchError

status: StatusCode

Status code of error, usually 400-499

message: String

Error message from Twitch

url: Url

URL to the endpoint

body: String

Body sent with PUT

Trait Implementations

impl Debug for RequestError[src]

impl Display for RequestError[src]

impl Error for RequestError[src]

impl From<Error> for RequestError[src]

impl From<Error> for RequestError[src]

impl From<Error> for RequestError[src]

impl From<Error> for RequestError[src]

impl From<ParseError> for RequestError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,