pub struct QueryHeatmapDataRequest {
pub screen_name: String,
pub date_from: Option<Timestamp>,
pub date_to: Option<Timestamp>,
pub campaign_id: String,
pub grid_resolution: f32,
pub mode: i32,
pub event_types: Vec<i32>,
}Expand description
Request to query aggregated heatmap data for a screen.
Fields§
§screen_name: StringScreen name to query. Constraints: Max length 200 characters.
date_from: Option<Timestamp>Start of the time range filter (inclusive).
date_to: Option<Timestamp>End of the time range filter (inclusive).
campaign_id: StringOptional: filter by campaign ID. Constraints: UUID format (36 characters).
grid_resolution: f32Grid resolution for coordinate rounding. Default: 0.02 (50×50 grid). Constraints: Range 0.005 to 0.1.
mode: i32Aggregation mode (TOTAL or MEDIAN).
event_types: Vec<i32>Optional: filter by event types. Empty list means all types.
Implementations§
Source§impl QueryHeatmapDataRequest
impl QueryHeatmapDataRequest
Sourcepub fn mode(&self) -> HeatmapMode
pub fn mode(&self) -> HeatmapMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: HeatmapMode)
pub fn set_mode(&mut self, value: HeatmapMode)
Sets mode to the provided enum value.
Sourcepub fn event_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<TouchEventType>>
pub fn event_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<TouchEventType>>
Returns an iterator which yields the valid enum values contained in event_types.
Sourcepub fn push_event_types(&mut self, value: TouchEventType)
pub fn push_event_types(&mut self, value: TouchEventType)
Appends the provided enum value to event_types.
Trait Implementations§
Source§impl Clone for QueryHeatmapDataRequest
impl Clone for QueryHeatmapDataRequest
Source§fn clone(&self) -> QueryHeatmapDataRequest
fn clone(&self) -> QueryHeatmapDataRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryHeatmapDataRequest
impl Debug for QueryHeatmapDataRequest
Source§impl Default for QueryHeatmapDataRequest
impl Default for QueryHeatmapDataRequest
Source§impl Message for QueryHeatmapDataRequest
impl Message for QueryHeatmapDataRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for QueryHeatmapDataRequest
impl PartialEq for QueryHeatmapDataRequest
Source§fn eq(&self, other: &QueryHeatmapDataRequest) -> bool
fn eq(&self, other: &QueryHeatmapDataRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryHeatmapDataRequest
Auto Trait Implementations§
impl Freeze for QueryHeatmapDataRequest
impl RefUnwindSafe for QueryHeatmapDataRequest
impl Send for QueryHeatmapDataRequest
impl Sync for QueryHeatmapDataRequest
impl Unpin for QueryHeatmapDataRequest
impl UnsafeUnpin for QueryHeatmapDataRequest
impl UnwindSafe for QueryHeatmapDataRequest
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request