pub struct TouchEvent {
pub screen_name: String,
pub x_pct: f32,
pub y_pct: f32,
pub event_type: i32,
pub screen_width: i32,
pub screen_height: i32,
pub client_timestamp: Option<Timestamp>,
pub campaign_id: String,
}Expand description
A single touch event captured from the mobile app.
Fields§
§screen_name: StringScreen name from React Navigation route. Constraints: Max length 200 characters.
x_pct: f32Horizontal coordinate as a percentage of screen width (0.0–1.0). Constraints: Range 0.0 to 1.0 inclusive.
y_pct: f32Vertical coordinate as a percentage of screen height (0.0–1.0). Constraints: Range 0.0 to 1.0 inclusive.
event_type: i32Type of touch event.
screen_width: i32Screen width in device pixels at the time of capture.
screen_height: i32Screen height in device pixels at the time of capture.
client_timestamp: Option<Timestamp>Client-side timestamp when the touch occurred.
campaign_id: StringCampaign ID if the touch occurred during a campaign message view. Empty string for organic (non-campaign) navigation.
Implementations§
Source§impl TouchEvent
impl TouchEvent
Sourcepub fn event_type(&self) -> TouchEventType
pub fn event_type(&self) -> TouchEventType
Returns the enum value of event_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_event_type(&mut self, value: TouchEventType)
pub fn set_event_type(&mut self, value: TouchEventType)
Sets event_type to the provided enum value.
Trait Implementations§
Source§impl Clone for TouchEvent
impl Clone for TouchEvent
Source§fn clone(&self) -> TouchEvent
fn clone(&self) -> TouchEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TouchEvent
impl Debug for TouchEvent
Source§impl Default for TouchEvent
impl Default for TouchEvent
Source§impl Message for TouchEvent
impl Message for TouchEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
impl Freeze for TouchEvent
impl RefUnwindSafe for TouchEvent
impl Send for TouchEvent
impl Sync for TouchEvent
impl Unpin for TouchEvent
impl UnsafeUnpin for TouchEvent
impl UnwindSafe for TouchEvent
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request