pub struct Mechanism {
pub ty: String,
pub description: Option<String>,
pub help_link: Option<Url>,
pub handled: Option<bool>,
pub synthetic: Option<bool>,
pub data: Map<String, Value>,
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.
synthetic: Option<bool>
An optional flag indicating a synthetic exception.
data: Map<String, Value>
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<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
impl StructuralPartialEq for Mechanism
Auto Trait Implementations§
impl Freeze for Mechanism
impl RefUnwindSafe for Mechanism
impl Send for Mechanism
impl Sync for Mechanism
impl Unpin for Mechanism
impl UnwindSafe for Mechanism
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