Struct sentry_types::protocol::v7::Context [−][src]
pub struct Context { pub data: ContextData, pub other: Map<String, Value>, }
General context data.
The data can be either typed (ContextData
) or be filled in as
unhandled attributes in extra
. If completely arbitrary data
should be used the typed data can be set to ContextData::Default
in which case no key is well known.
Types like OsContext
can be directly converted with .into()
to Context
or ContextData
.
Fields
data: ContextData
Typed context data.
other: Map<String, Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations
impl Debug for Context
[src]
impl Debug for Context
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Context
[src]
impl Clone for Context
fn clone(&self) -> Context
[src]
fn clone(&self) -> Context
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Context
[src]
impl Default for Context
impl PartialEq for Context
[src]
impl PartialEq for Context
fn eq(&self, other: &Context) -> bool
[src]
fn eq(&self, other: &Context) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Context) -> bool
[src]
fn ne(&self, other: &Context) -> bool
This method tests for !=
.
impl From<ContextData> for Context
[src]
impl From<ContextData> for Context
fn from(data: ContextData) -> Context
[src]
fn from(data: ContextData) -> Context
Performs the conversion.
impl From<AppContext> for Context
[src]
impl From<AppContext> for Context
fn from(data: AppContext) -> Context
[src]
fn from(data: AppContext) -> Context
Performs the conversion.
impl From<DeviceContext> for Context
[src]
impl From<DeviceContext> for Context
fn from(data: DeviceContext) -> Context
[src]
fn from(data: DeviceContext) -> Context
Performs the conversion.
impl From<OsContext> for Context
[src]
impl From<OsContext> for Context
impl From<RuntimeContext> for Context
[src]
impl From<RuntimeContext> for Context
fn from(data: RuntimeContext) -> Context
[src]
fn from(data: RuntimeContext) -> Context
Performs the conversion.
impl From<BrowserContext> for Context
[src]
impl From<BrowserContext> for Context
fn from(data: BrowserContext) -> Context
[src]
fn from(data: BrowserContext) -> Context
Performs the conversion.
impl From<Map<String, Value>> for Context
[src]
impl From<Map<String, Value>> for Context