Struct google_api_proto::google::analytics::admin::v1alpha::EventMapping
source · pub struct EventMapping {
pub event_name: String,
pub min_event_count: Option<i64>,
pub max_event_count: Option<i64>,
pub min_event_value: Option<f64>,
pub max_event_value: Option<f64>,
}
Expand description
Event setting conditions to match an event.
Fields§
§event_name: String
Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units.
min_event_count: Option<i64>
At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event. The minimum number of times the event occurred. If not set, minimum event count won’t be checked.
max_event_count: Option<i64>
The maximum number of times the event occurred. If not set, maximum event count won’t be checked.
min_event_value: Option<f64>
The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won’t be checked.
max_event_value: Option<f64>
The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won’t be checked.
Implementations§
source§impl EventMapping
impl EventMapping
sourcepub fn min_event_count(&self) -> i64
pub fn min_event_count(&self) -> i64
Returns the value of min_event_count
, or the default value if min_event_count
is unset.
sourcepub fn max_event_count(&self) -> i64
pub fn max_event_count(&self) -> i64
Returns the value of max_event_count
, or the default value if max_event_count
is unset.
sourcepub fn min_event_value(&self) -> f64
pub fn min_event_value(&self) -> f64
Returns the value of min_event_value
, or the default value if min_event_value
is unset.
sourcepub fn max_event_value(&self) -> f64
pub fn max_event_value(&self) -> f64
Returns the value of max_event_value
, or the default value if max_event_value
is unset.
Trait Implementations§
source§impl Clone for EventMapping
impl Clone for EventMapping
source§fn clone(&self) -> EventMapping
fn clone(&self) -> EventMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventMapping
impl Debug for EventMapping
source§impl Default for EventMapping
impl Default for EventMapping
source§impl Message for EventMapping
impl Message for EventMapping
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 EventMapping
impl PartialEq for EventMapping
source§fn eq(&self, other: &EventMapping) -> bool
fn eq(&self, other: &EventMapping) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EventMapping
Auto Trait Implementations§
impl Freeze for EventMapping
impl RefUnwindSafe for EventMapping
impl Send for EventMapping
impl Sync for EventMapping
impl Unpin for EventMapping
impl UnwindSafe for EventMapping
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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