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
sourceimpl<'de> Deserialize<'de> for Mechanism
impl<'de> Deserialize<'de> for Mechanism
sourcefn 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 RefUnwindSafe for Mechanism
impl Send for Mechanism
impl Sync for Mechanism
impl Unpin for Mechanism
impl UnwindSafe for Mechanism
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more