Struct twitch_api_rs::requests::FailureStatus[][src]

pub struct FailureStatus<S> where
    S: DeserializeOwned + Display + Debug + 'static, 
{ pub error: Option<String>, pub status: S, pub message: String, }

Represents a sucessful request that was denied by the twitch api for some reason. Use request's associated ErrorCodes to get matchable value.

Fields

error: Option<String>

Error message

status: S

The status code of the Failure

If S is ErrorCodes then this is a known error for this request, if u16 then it is not known

message: String

The message twitch sent with the error

Trait Implementations

impl<S: Debug> Debug for FailureStatus<S> where
    S: DeserializeOwned + Display + Debug + 'static, 
[src]

impl<'de, S> Deserialize<'de> for FailureStatus<S> where
    S: DeserializeOwned + Display + Debug + 'static,
    S: DeserializeOwned
[src]

impl<S> Display for FailureStatus<S> where
    S: DeserializeOwned + Display + Debug + 'static, 
[src]

impl<S> Error for FailureStatus<S> where
    S: DeserializeOwned + Display + Debug + 'static, 
[src]

impl<E: ErrorCodes> From<FailureStatus<u16>> for RequestError<E>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for FailureStatus<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for FailureStatus<S> where
    S: Send
[src]

impl<S> Sync for FailureStatus<S> where
    S: Sync
[src]

impl<S> Unpin for FailureStatus<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for FailureStatus<S> where
    S: UnwindSafe
[src]

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Response for T where
    T: DeserializeOwned
[src]

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>,