pub struct ApiError {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: String,
}Expand description
The status, headers, and body returned by an unsuccessful API request.
Fields§
§status: StatusCodeHTTP status code.
headers: HeaderMapAPI response headers, including usage and quota information.
body: StringUnmodified response body.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
impl UnwindSafe for ApiError
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