Struct google_api_proto::google::analytics::admin::v1alpha::ConversionValues
source · pub struct ConversionValues {
pub display_name: String,
pub fine_value: Option<i32>,
pub coarse_value: i32,
pub event_mappings: Vec<EventMapping>,
pub lock_enabled: bool,
}
Expand description
Conversion value settings for a postback window for SKAdNetwork conversion value schema.
Fields§
§display_name: String
Display name of the SKAdNetwork conversion value. The max allowed display name length is 50 UTF-16 code units.
fine_value: Option<i32>
The fine-grained conversion value. This is applicable only to the first postback window. Its valid values are [0,63], both inclusive. It must be set for postback window 1, and must not be set for postback window 2 & 3. This value is not guaranteed to be unique.
If the configuration for the first postback window is re-used for second or third postback windows this field has no effect.
coarse_value: i32
Required. A coarse grained conversion value.
This value is not guaranteed to be unique.
event_mappings: Vec<EventMapping>
Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.
lock_enabled: bool
If true, the SDK should lock to this conversion value for the current postback window.
Implementations§
source§impl ConversionValues
impl ConversionValues
sourcepub fn fine_value(&self) -> i32
pub fn fine_value(&self) -> i32
Returns the value of fine_value
, or the default value if fine_value
is unset.
sourcepub fn coarse_value(&self) -> CoarseValue
pub fn coarse_value(&self) -> CoarseValue
Returns the enum value of coarse_value
, or the default if the field is set to an invalid enum value.
sourcepub fn set_coarse_value(&mut self, value: CoarseValue)
pub fn set_coarse_value(&mut self, value: CoarseValue)
Sets coarse_value
to the provided enum value.
Trait Implementations§
source§impl Clone for ConversionValues
impl Clone for ConversionValues
source§fn clone(&self) -> ConversionValues
fn clone(&self) -> ConversionValues
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionValues
impl Debug for ConversionValues
source§impl Default for ConversionValues
impl Default for ConversionValues
source§impl Message for ConversionValues
impl Message for ConversionValues
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 ConversionValues
impl PartialEq for ConversionValues
source§fn eq(&self, other: &ConversionValues) -> bool
fn eq(&self, other: &ConversionValues) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConversionValues
Auto Trait Implementations§
impl Freeze for ConversionValues
impl RefUnwindSafe for ConversionValues
impl Send for ConversionValues
impl Sync for ConversionValues
impl Unpin for ConversionValues
impl UnwindSafe for ConversionValues
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