Struct sentry::protocol::AppContext
source · [−]pub struct AppContext {
pub app_start_time: Option<DateTime<Utc>>,
pub device_app_hash: Option<String>,
pub build_type: Option<String>,
pub app_identifier: Option<String>,
pub app_name: Option<String>,
pub app_version: Option<String>,
pub app_build: Option<String>,
pub other: BTreeMap<String, Value>,
}
Expand description
Holds app information.
Fields
app_start_time: Option<DateTime<Utc>>
Optional start time of the app.
device_app_hash: Option<String>
Optional device app hash (app specific device ID)
build_type: Option<String>
Optional build identicator.
app_identifier: Option<String>
Optional app identifier (dotted bundle id).
app_name: Option<String>
Application name as it appears on the platform.
app_version: Option<String>
Application version as it appears on the platform.
app_build: Option<String>
Internal build ID as it appears on the platform.
other: BTreeMap<String, Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations
sourceimpl Clone for AppContext
impl Clone for AppContext
sourcepub fn clone(&self) -> AppContext
pub fn clone(&self) -> AppContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AppContext
impl Debug for AppContext
sourceimpl Default for AppContext
impl Default for AppContext
sourcepub fn default() -> AppContext
pub fn default() -> AppContext
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AppContext
impl<'de> Deserialize<'de> for AppContext
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<AppContext, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AppContext, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<AppContext> for Context
impl From<AppContext> for Context
sourcepub fn from(data: AppContext) -> Context
pub fn from(data: AppContext) -> Context
Performs the conversion.
sourceimpl PartialEq<AppContext> for AppContext
impl PartialEq<AppContext> for AppContext
sourcepub fn eq(&self, other: &AppContext) -> bool
pub fn eq(&self, other: &AppContext) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &AppContext) -> bool
pub fn ne(&self, other: &AppContext) -> bool
This method tests for !=
.
sourceimpl Serialize for AppContext
impl Serialize for AppContext
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 AppContext
Auto Trait Implementations
impl RefUnwindSafe for AppContext
impl Send for AppContext
impl Sync for AppContext
impl Unpin for AppContext
impl UnwindSafe for AppContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more