Struct relay_event_schema::protocol::AppContext
source · pub struct AppContext {
pub app_start_time: Annotated<String>,
pub device_app_hash: Annotated<String>,
pub build_type: Annotated<String>,
pub app_identifier: Annotated<String>,
pub app_name: Annotated<String>,
pub app_version: Annotated<String>,
pub app_build: Annotated<LenientString>,
pub app_memory: Annotated<u64>,
pub in_foreground: Annotated<bool>,
pub view_names: Annotated<Vec<Annotated<String>>>,
pub other: Object<Value>,
}
Expand description
Application information.
App context describes the application. As opposed to the runtime, this is the actual application that was running and carries metadata about the current session.
Fields§
§app_start_time: Annotated<String>
Start time of the app.
Formatted UTC timestamp when the user started the application.
device_app_hash: Annotated<String>
Application-specific device identifier.
build_type: Annotated<String>
String identifying the kind of build. For example, testflight
.
app_identifier: Annotated<String>
Version-independent application identifier, often a dotted bundle ID.
app_name: Annotated<String>
Application name as it appears on the platform.
app_version: Annotated<String>
Application version as it appears on the platform.
app_build: Annotated<LenientString>
Internal build ID as it appears on the platform.
app_memory: Annotated<u64>
Amount of memory used by the application in bytes.
in_foreground: Annotated<bool>
A flag indicating whether the app is in foreground or not. An app is in foreground when it’s visible to the user.
view_names: Annotated<Vec<Annotated<String>>>
The names of the currently visible views.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl Clone for AppContext
impl Clone for AppContext
source§fn clone(&self) -> AppContext
fn clone(&self) -> AppContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppContext
impl Debug for AppContext
source§impl Default for AppContext
impl Default for AppContext
source§fn default() -> AppContext
fn default() -> AppContext
source§impl DefaultContext for AppContext
impl DefaultContext for AppContext
source§fn default_key() -> &'static str
fn default_key() -> &'static str
Contexts
.source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
source§fn into_context(self) -> Context
fn into_context(self) -> Context
source§impl Empty for AppContext
impl Empty for AppContext
source§impl FromValue for AppContext
impl FromValue for AppContext
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
source§impl IntoValue for AppContext
impl IntoValue for AppContext
source§fn into_value(self) -> Value
fn into_value(self) -> Value
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
source§impl PartialEq for AppContext
impl PartialEq for AppContext
source§impl ProcessValue for AppContext
impl ProcessValue for AppContext
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
impl StructuralPartialEq for AppContext
Auto Trait Implementations§
impl Freeze for AppContext
impl RefUnwindSafe for AppContext
impl Send for AppContext
impl Sync for AppContext
impl Unpin for AppContext
impl UnwindSafe for AppContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)