Struct discord_flows::http::error::ErrorResponse
source · pub struct ErrorResponse {
pub status_code: StatusCode,
pub url: Url,
pub error: DiscordJsonError,
}
Fields§
§status_code: StatusCode
§url: Url
§error: DiscordJsonError
Implementations§
source§impl ErrorResponse
impl ErrorResponse
pub async fn from_response(r: Response) -> Self
Trait Implementations§
source§impl Clone for ErrorResponse
impl Clone for ErrorResponse
source§fn clone(&self) -> ErrorResponse
fn clone(&self) -> ErrorResponse
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 ErrorResponse
impl Debug for ErrorResponse
source§impl From<ErrorResponse> for Error
impl From<ErrorResponse> for Error
source§fn from(error: ErrorResponse) -> Error
fn from(error: ErrorResponse) -> Error
Converts to this type from the input type.
source§impl PartialEq<ErrorResponse> for ErrorResponse
impl PartialEq<ErrorResponse> for ErrorResponse
source§fn eq(&self, other: &ErrorResponse) -> bool
fn eq(&self, other: &ErrorResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ErrorResponse
Auto Trait Implementations§
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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