pub struct ApiError {
pub status: u16,
pub code: Option<i32>,
pub message: String,
pub body: String,
}Expand description
Detailed API error from Cloudflare
Fields§
§status: u16HTTP status code
code: Option<i32>Error code from Cloudflare
message: StringError message
body: StringFull response body for debugging
Implementations§
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 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