pub struct TwitchTokenErrorResponse {
pub status: StatusCode,
pub message: String,
pub error: Option<String>,
}
Expand description
Twitch’s representation of the oauth flow for errors
Fields§
§status: StatusCode
Status code of error
message: String
Message attached to error
error: Option<String>
Description of the error message.
Trait Implementations§
Source§impl Clone for TwitchTokenErrorResponse
impl Clone for TwitchTokenErrorResponse
Source§fn clone(&self) -> TwitchTokenErrorResponse
fn clone(&self) -> TwitchTokenErrorResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TwitchTokenErrorResponse
impl Debug for TwitchTokenErrorResponse
Source§impl<'de> Deserialize<'de> for TwitchTokenErrorResponse
impl<'de> Deserialize<'de> for TwitchTokenErrorResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TwitchTokenErrorResponse
impl Display for TwitchTokenErrorResponse
Source§impl Error for TwitchTokenErrorResponse
impl Error for TwitchTokenErrorResponse
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TwitchTokenErrorResponse> for RequestParseError
impl From<TwitchTokenErrorResponse> for RequestParseError
Source§fn from(source: TwitchTokenErrorResponse) -> Self
fn from(source: TwitchTokenErrorResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TwitchTokenErrorResponse
impl RefUnwindSafe for TwitchTokenErrorResponse
impl Send for TwitchTokenErrorResponse
impl Sync for TwitchTokenErrorResponse
impl Unpin for TwitchTokenErrorResponse
impl UnwindSafe for TwitchTokenErrorResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)