pub struct ErrorResponse {
pub code: &'static str,
pub message: String,
pub details: Option<String>,
pub hint: Option<String>,
}Expand description
JSON error response format
§Example Response
{
"code": "DBRST200",
"message": "Table not found: users",
"details": null,
"hint": "Did you mean 'user'?"
}Fields§
§code: &'static strDBRST error code (e.g., “DBRST200”)
message: StringHuman-readable error message
details: Option<String>Additional details about the error (optional)
hint: Option<String>Hint for resolution (optional)
Trait Implementations§
Source§impl Debug for ErrorResponse
impl Debug for ErrorResponse
Source§impl From<&Error> for ErrorResponse
impl From<&Error> for ErrorResponse
Auto Trait Implementations§
impl Freeze for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnsafeUnpin 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