Struct sentry_core::protocol::Mechanism
source · [−]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, 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.
synthetic: Option<bool>
An optional flag indicating a synthetic exception.
data: BTreeMap<String, Value, Global>
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<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
sourceimpl Serialize for Mechanism
impl Serialize for Mechanism
sourcefn 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 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