pub struct DisplayJsonData {
pub id: Option<Value>,
pub code: Option<String>,
pub message: String,
pub tags: Option<Vec<String>>,
pub data: Option<Value>,
pub help: Option<String>,
pub causes: Option<Vec<DisplayCausesJsonData>>,
}Expand description
JSON data for public 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.
help: Option<String>Error help hint.
causes: Option<Vec<DisplayCausesJsonData>>Error causes
Trait Implementations§
Source§impl Clone for DisplayJsonData
impl Clone for DisplayJsonData
Source§fn clone(&self) -> DisplayJsonData
fn clone(&self) -> DisplayJsonData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayJsonData
impl Debug for DisplayJsonData
Source§impl<'de> Deserialize<'de> for DisplayJsonData
impl<'de> Deserialize<'de> for DisplayJsonData
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 DisplayJsonData
impl RefUnwindSafe for DisplayJsonData
impl Send for DisplayJsonData
impl Sync for DisplayJsonData
impl Unpin for DisplayJsonData
impl UnsafeUnpin for DisplayJsonData
impl UnwindSafe for DisplayJsonData
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