pub struct ErrorBody {
pub error: String,
}Expand description
Simple error body: { "error": "..." }.
Used for generic HTTP errors such as “Invalid UTF-8”, “Payload too large”, “Not Found”, “Bad Request”, etc.
Fields§
§error: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorBody
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBody
impl Sync for ErrorBody
impl Unpin for ErrorBody
impl UnwindSafe for ErrorBody
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