Struct twitch_api_rs::requests::FailureStatus [−][src]
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]
S: DeserializeOwned + Display + Debug + 'static,
impl<'de, S> Deserialize<'de> for FailureStatus<S> where
S: DeserializeOwned + Display + Debug + 'static,
S: DeserializeOwned,
[src]
S: DeserializeOwned + Display + Debug + 'static,
S: DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<S> Display for FailureStatus<S> where
S: DeserializeOwned + Display + Debug + 'static,
[src]
S: DeserializeOwned + Display + Debug + 'static,
impl<S> Error for FailureStatus<S> where
S: DeserializeOwned + Display + Debug + 'static,
[src]
S: DeserializeOwned + Display + Debug + 'static,
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<E: ErrorCodes> From<FailureStatus<u16>> for RequestError<E>
[src]
fn from(failure: FailureStatus<u16>) -> Self
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for FailureStatus<S> where
S: RefUnwindSafe,
[src]
S: RefUnwindSafe,
impl<S> Send for FailureStatus<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for FailureStatus<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for FailureStatus<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for FailureStatus<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> 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]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Response for T where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,