pub struct Mechanism {
pub ty: String,
pub description: Option<String>,
pub help_link: Option<Url>,
pub handled: Option<bool>,
pub data: BTreeMap<String, Value, Global>,
pub meta: MechanismMeta,
}
Expand description
Represents a single exception.
Fields§
§ty: String
The mechanism type identifier.
description: Option<String>
Human readable detail description.
help_link: Option<Url>
An optional link to online resources describing this error.
handled: Option<bool>
An optional flag indicating whether this exception was handled.
data: BTreeMap<String, Value, Global>
Additional attributes depending on the mechanism type.
meta: MechanismMeta
Operating system or runtime meta information.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mechanism
impl<'de> Deserialize<'de> for Mechanism
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Mechanism, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Mechanism, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Mechanism
impl Serialize for Mechanism
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more