pub struct ErrorResponse {
pub error_code: String,
pub message: String,
pub details: Option<String>,
}Expand description
Structured error response with error code and details.
Fields§
§error_code: StringUnique error code for client-side error handling.
message: StringHuman-readable error message.
details: Option<String>Optional additional details about the error.
Implementations§
Trait Implementations§
Source§impl Debug for ErrorResponse
impl Debug 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 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