Enum twitch_api::helix::request::errors::HelixRequestDeleteError
source · [−]pub enum HelixRequestDeleteError {
Error {
error: String,
status: StatusCode,
message: String,
uri: Uri,
body: Bytes,
},
Utf8Error(Bytes, Utf8Error, Uri),
InvalidResponse {
reason: &'static str,
response: String,
status: StatusCode,
uri: Uri,
},
}
Available on crate feature
helix
only.Expand description
Could not parse DELETE response
Variants
Error
Fields
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
body: Bytes
Body sent to DELETE response
helix returned error {status:?} - {error}: {message:?} when calling DELETE {uri}
Utf8Error(Bytes, Utf8Error, Uri)
could not parse response as utf8 when calling DELETE {2}
InvalidResponse
Fields
reason: &'static str
Reason for error
response: String
Response text
status: StatusCode
Status Code
uri: Uri
Uri to endpoint
invalid or unexpected response from twitch.
Trait Implementations
sourceimpl Debug for HelixRequestDeleteError
impl Debug for HelixRequestDeleteError
sourceimpl Display for HelixRequestDeleteError
impl Display for HelixRequestDeleteError
sourceimpl Error for HelixRequestDeleteError
impl Error for HelixRequestDeleteError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl<RE: Error + Send + Sync + 'static> From<HelixRequestDeleteError> for ClientRequestError<RE>
impl<RE: Error + Send + Sync + 'static> From<HelixRequestDeleteError> for ClientRequestError<RE>
sourcefn from(source: HelixRequestDeleteError) -> Self
fn from(source: HelixRequestDeleteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for HelixRequestDeleteError
impl Send for HelixRequestDeleteError
impl Sync for HelixRequestDeleteError
impl Unpin for HelixRequestDeleteError
impl UnwindSafe for HelixRequestDeleteError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more