pub struct ApiErrorJsonResponse {
pub name: String,
pub message: String,
pub details: Value,
pub error_code: ApiResponseCode,
pub db_error_ref: Option<DbErrorRef>,
}
Expand description
General structure for handling API error responses in JSON format.
Fields§
§name: String
Name of the error.
message: String
Descriptive error message.
details: Value
Detailed information related to the error.
error_code: ApiResponseCode
The specific error code for the response.
db_error_ref: Option<DbErrorRef>
Optional reference to a database entity involved in the error.
Trait Implementations§
Source§impl Debug for ApiErrorJsonResponse
impl Debug for ApiErrorJsonResponse
Auto Trait Implementations§
impl Freeze for ApiErrorJsonResponse
impl RefUnwindSafe for ApiErrorJsonResponse
impl Send for ApiErrorJsonResponse
impl Sync for ApiErrorJsonResponse
impl Unpin for ApiErrorJsonResponse
impl UnwindSafe for ApiErrorJsonResponse
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