pub struct JsonData {
pub id: Option<Value>,
pub code: Option<String>,
pub message: String,
pub tags: Option<Vec<String>>,
pub data: Option<Value>,
pub location: Option<LocationJsonData>,
pub sources: Option<Vec<SourceJsonData>>,
pub help: Option<String>,
pub backtrace: Option<String>,
}Expand description
JSON data for internal display.
Fields§
§id: Option<Value>Error ID: can be in form of Number or String
code: Option<String>Error code
message: StringError message
Error tags
data: Option<Value>Error data: can be in any JSON values.
location: Option<LocationJsonData>Error location
sources: Option<Vec<SourceJsonData>>Error sources
help: Option<String>Error help hint
backtrace: Option<String>Error stack trace
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonData
impl<'de> Deserialize<'de> for JsonData
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
Auto Trait Implementations§
impl Freeze for JsonData
impl RefUnwindSafe for JsonData
impl Send for JsonData
impl Sync for JsonData
impl Unpin for JsonData
impl UnsafeUnpin for JsonData
impl UnwindSafe for JsonData
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