Struct google_api_proto::google::ads::googleads::v15::common::StoreSalesMetadata
source · pub struct StoreSalesMetadata {
pub loyalty_fraction: Option<f64>,
pub transaction_upload_fraction: Option<f64>,
pub custom_key: Option<String>,
pub third_party_metadata: Option<StoreSalesThirdPartyMetadata>,
}
Expand description
Metadata for Store Sales Direct.
Fields§
§loyalty_fraction: Option<f64>
This is the fraction of all transactions that are identifiable (for example, associated with any form of customer information). Required. The fraction needs to be between 0 and 1 (excluding 0).
transaction_upload_fraction: Option<f64>
This is the ratio of sales being uploaded compared to the overall sales that can be associated with a customer. Required. The fraction needs to be between 0 and 1 (excluding 0). For example, if you upload half the sales that you are able to associate with a customer, this would be 0.5.
custom_key: Option<String>
Name of the store sales custom variable key. A predefined key that can be applied to the transaction and then later used for custom segmentation in reporting. Accessible only to customers on the allow-list.
third_party_metadata: Option<StoreSalesThirdPartyMetadata>
Metadata for a third party Store Sales upload.
Implementations§
source§impl StoreSalesMetadata
impl StoreSalesMetadata
sourcepub fn loyalty_fraction(&self) -> f64
pub fn loyalty_fraction(&self) -> f64
Returns the value of loyalty_fraction
, or the default value if loyalty_fraction
is unset.
sourcepub fn transaction_upload_fraction(&self) -> f64
pub fn transaction_upload_fraction(&self) -> f64
Returns the value of transaction_upload_fraction
, or the default value if transaction_upload_fraction
is unset.
sourcepub fn custom_key(&self) -> &str
pub fn custom_key(&self) -> &str
Returns the value of custom_key
, or the default value if custom_key
is unset.
Trait Implementations§
source§impl Clone for StoreSalesMetadata
impl Clone for StoreSalesMetadata
source§fn clone(&self) -> StoreSalesMetadata
fn clone(&self) -> StoreSalesMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StoreSalesMetadata
impl Debug for StoreSalesMetadata
source§impl Default for StoreSalesMetadata
impl Default for StoreSalesMetadata
source§impl Message for StoreSalesMetadata
impl Message for StoreSalesMetadata
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 StoreSalesMetadata
impl PartialEq for StoreSalesMetadata
source§fn eq(&self, other: &StoreSalesMetadata) -> bool
fn eq(&self, other: &StoreSalesMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StoreSalesMetadata
Auto Trait Implementations§
impl Freeze for StoreSalesMetadata
impl RefUnwindSafe for StoreSalesMetadata
impl Send for StoreSalesMetadata
impl Sync for StoreSalesMetadata
impl Unpin for StoreSalesMetadata
impl UnwindSafe for StoreSalesMetadata
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