Struct sentry::protocol::Context
[−]
[src]
pub struct Context { pub data: ContextData, pub extra: LinkedHashMap<String, Value, RandomState>, }
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.
extra: LinkedHashMap<String, Value, RandomState>
Additional keys sent along not known to the context type.
Trait Implementations
impl PartialEq<Context> for Context
[src]
fn eq(&self, __arg_0: &Context) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Context) -> bool
[src]
This method tests for !=
.
impl From<DeviceContext> for Context
[src]
fn from(data: DeviceContext) -> Context
[src]
Performs the conversion.
impl From<ContextData> for Context
[src]
fn from(data: ContextData) -> Context
[src]
Performs the conversion.
impl From<RuntimeContext> for Context
[src]
fn from(data: RuntimeContext) -> Context
[src]
Performs the conversion.
impl From<LinkedHashMap<String, Value, RandomState>> for Context
[src]
fn from(data: LinkedHashMap<String, Value, RandomState>) -> Context
[src]
Performs the conversion.
impl From<BrowserContext> for Context
[src]
fn from(data: BrowserContext) -> Context
[src]
Performs the conversion.
impl From<AppContext> for Context
[src]
fn from(data: AppContext) -> Context
[src]
Performs the conversion.
impl From<OsContext> for Context
[src]
impl Clone for Context
[src]
fn clone(&self) -> Context
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Context
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more