Struct Mechanism
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: BTreeMap<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: BTreeMap<String, Value>
Additional attributes depending on the mechanism type.
meta: MechanismMeta
Operating system or runtime meta information.
Trait Implementations§
§impl<'de> Deserialize<'de> for Mechanism
impl<'de> Deserialize<'de> for Mechanism
§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
§impl Serialize for Mechanism
impl Serialize for Mechanism
§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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)