Struct actix_tools::sentry::sentry_client::protocol::Context [−]
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 Clone for Context
impl Clone for Contextfn clone(&self) -> Context
fn clone(&self) -> ContextReturns 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
impl Default for Contextimpl Debug for Context
impl Debug for Contextfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl PartialEq<Context> for Context
impl PartialEq<Context> for Contextfn eq(&self, other: &Context) -> bool
fn eq(&self, other: &Context) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Context) -> bool
fn ne(&self, other: &Context) -> boolThis method tests for !=.
impl From<DeviceContext> for Context
impl From<DeviceContext> for Contextfn from(data: DeviceContext) -> Context
fn from(data: DeviceContext) -> ContextPerforms the conversion.
impl From<LinkedHashMap<String, Value, RandomState>> for Context
impl From<LinkedHashMap<String, Value, RandomState>> for Contextfn from(data: LinkedHashMap<String, Value, RandomState>) -> Context
fn from(data: LinkedHashMap<String, Value, RandomState>) -> ContextPerforms the conversion.
impl From<OsContext> for Context
impl From<OsContext> for Contextimpl From<AppContext> for Context
impl From<AppContext> for Contextfn from(data: AppContext) -> Context
fn from(data: AppContext) -> ContextPerforms the conversion.
impl From<RuntimeContext> for Context
impl From<RuntimeContext> for Contextfn from(data: RuntimeContext) -> Context
fn from(data: RuntimeContext) -> ContextPerforms the conversion.
impl From<BrowserContext> for Context
impl From<BrowserContext> for Contextfn from(data: BrowserContext) -> Context
fn from(data: BrowserContext) -> ContextPerforms the conversion.
impl From<ContextData> for Context
impl From<ContextData> for Contextfn from(data: ContextData) -> Context
fn from(data: ContextData) -> ContextPerforms the conversion.