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

Typed context data.

Additional keys sent along not known to the context type.

Trait Implementations

impl Clone for Context

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Context

Returns the "default value" for a type. Read more

impl Debug for Context

Formats the value using the given formatter. Read more

impl PartialEq<Context> for Context

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<DeviceContext> for Context

Performs the conversion.

impl From<LinkedHashMap<String, Value, RandomState>> for Context

Performs the conversion.

impl From<OsContext> for Context

Performs the conversion.

impl From<AppContext> for Context

Performs the conversion.

impl From<RuntimeContext> for Context

Performs the conversion.

impl From<BrowserContext> for Context

Performs the conversion.

impl From<ContextData> for Context

Performs the conversion.

Auto Trait Implementations

impl Send for Context

impl Sync for Context