Struct google_api_proto::google::ads::googleads::v16::resources::conversion_action::ValueSettings
source · pub struct ValueSettings {
pub default_value: Option<f64>,
pub default_currency_code: Option<String>,
pub always_use_default_value: Option<bool>,
}
Expand description
Settings related to the value for conversion events associated with this conversion action.
Fields§
§default_value: Option<f64>
The value to use when conversion events for this conversion action are sent with an invalid, disallowed or missing value, or when this conversion action is configured to always use the default value.
default_currency_code: Option<String>
The currency code to use when conversion events for this conversion action are sent with an invalid or missing currency code, or when this conversion action is configured to always use the default value.
always_use_default_value: Option<bool>
Controls whether the default value and default currency code are used in place of the value and currency code specified in conversion events for this conversion action.
Implementations§
source§impl ValueSettings
impl ValueSettings
sourcepub fn default_value(&self) -> f64
pub fn default_value(&self) -> f64
Returns the value of default_value
, or the default value if default_value
is unset.
sourcepub fn default_currency_code(&self) -> &str
pub fn default_currency_code(&self) -> &str
Returns the value of default_currency_code
, or the default value if default_currency_code
is unset.
sourcepub fn always_use_default_value(&self) -> bool
pub fn always_use_default_value(&self) -> bool
Returns the value of always_use_default_value
, or the default value if always_use_default_value
is unset.
Trait Implementations§
source§impl Clone for ValueSettings
impl Clone for ValueSettings
source§fn clone(&self) -> ValueSettings
fn clone(&self) -> ValueSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ValueSettings
impl Debug for ValueSettings
source§impl Default for ValueSettings
impl Default for ValueSettings
source§impl Message for ValueSettings
impl Message for ValueSettings
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 ValueSettings
impl PartialEq for ValueSettings
source§fn eq(&self, other: &ValueSettings) -> bool
fn eq(&self, other: &ValueSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ValueSettings
Auto Trait Implementations§
impl Freeze for ValueSettings
impl RefUnwindSafe for ValueSettings
impl Send for ValueSettings
impl Sync for ValueSettings
impl Unpin for ValueSettings
impl UnwindSafe for ValueSettings
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