pub struct ApiError {
pub code: String,
pub message: String,
pub detail: Option<Value>,
}Expand description
Structured error detail carried in an error envelope.
Fields§
§code: StringStable machine-readable error code.
message: StringHuman-readable error message.
detail: Option<Value>Optional extra structured detail.
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 UnsafeUnpin 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