pub struct JsonErrorBody {
pub code: Option<u16>,
pub message: Option<String>,
pub cause: Option<String>,
pub error_id: Option<MaybeUnknown<Exception>>,
pub x_id: Option<String>,
}
Expand description
A JSON error body returned by the JSON API on errors.
Fields§
§code: Option<u16>
Error code. Often valid HTTP status codes, but not always.
message: Option<String>
Error message.
cause: Option<String>
Error cause.
error_id: Option<MaybeUnknown<Exception>>
Optiona error id.
x_id: Option<String>
Some kind of tracing id maybe?
Trait Implementations§
Source§impl Debug for JsonErrorBody
impl Debug for JsonErrorBody
Source§impl<'de> Deserialize<'de> for JsonErrorBody
impl<'de> Deserialize<'de> for JsonErrorBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<JsonErrorBody> for Error
impl From<JsonErrorBody> for Error
Source§fn from(err: JsonErrorBody) -> Self
fn from(err: JsonErrorBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonErrorBody
impl RefUnwindSafe for JsonErrorBody
impl Send for JsonErrorBody
impl Sync for JsonErrorBody
impl Unpin for JsonErrorBody
impl UnwindSafe for JsonErrorBody
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