Struct google_api_proto::google::analytics::admin::v1alpha::ConversionEvent
source · pub struct ConversionEvent {
pub name: String,
pub event_name: String,
pub create_time: Option<Timestamp>,
pub deletable: bool,
pub custom: bool,
pub counting_method: i32,
pub default_conversion_value: Option<DefaultConversionValue>,
}
Expand description
A conversion event in a Google Analytics property.
Fields§
§name: String
Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event}
event_name: String
Immutable. The event name for this conversion event. Examples: ‘click’, ‘purchase’
create_time: Option<Timestamp>
Output only. Time when this conversion event was created in the property.
deletable: bool
Output only. If set, this event can currently be deleted with DeleteConversionEvent.
custom: bool
Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom conversion events that may be created per property.
counting_method: i32
Optional. The method by which conversions will be counted across multiple
events within a session. If this value is not provided, it will be set to
ONCE_PER_EVENT
.
default_conversion_value: Option<DefaultConversionValue>
Optional. Defines a default value/currency for a conversion event.
Implementations§
source§impl ConversionEvent
impl ConversionEvent
sourcepub fn counting_method(&self) -> ConversionCountingMethod
pub fn counting_method(&self) -> ConversionCountingMethod
Returns the enum value of counting_method
, or the default if the field is set to an invalid enum value.
sourcepub fn set_counting_method(&mut self, value: ConversionCountingMethod)
pub fn set_counting_method(&mut self, value: ConversionCountingMethod)
Sets counting_method
to the provided enum value.
Trait Implementations§
source§impl Clone for ConversionEvent
impl Clone for ConversionEvent
source§fn clone(&self) -> ConversionEvent
fn clone(&self) -> ConversionEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionEvent
impl Debug for ConversionEvent
source§impl Default for ConversionEvent
impl Default for ConversionEvent
source§impl Message for ConversionEvent
impl Message for ConversionEvent
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 ConversionEvent
impl PartialEq for ConversionEvent
source§fn eq(&self, other: &ConversionEvent) -> bool
fn eq(&self, other: &ConversionEvent) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConversionEvent
Auto Trait Implementations§
impl Freeze for ConversionEvent
impl RefUnwindSafe for ConversionEvent
impl Send for ConversionEvent
impl Sync for ConversionEvent
impl Unpin for ConversionEvent
impl UnwindSafe for ConversionEvent
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