Enum google_api_proto::google::ads::googleads::v16::enums::payment_mode_enum::PaymentMode
source · #[repr(i32)]pub enum PaymentMode {
Unspecified = 0,
Unknown = 1,
Clicks = 4,
ConversionValue = 5,
Conversions = 6,
GuestStay = 7,
}
Expand description
Enum describing possible payment modes.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Clicks = 4
Pay per interaction.
ConversionValue = 5
Pay per conversion value. This mode is only supported by campaigns with AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and BudgetType.STANDARD.
Conversions = 6
Pay per conversion. This mode is only supported by campaigns with AdvertisingChannelType.DISPLAY (excluding AdvertisingChannelSubType.DISPLAY_GMAIL), BiddingStrategyType.TARGET_CPA, and BudgetType.FIXED_CPA. The customer must also be eligible for this mode. See Customer.eligibility_failure_reasons for details.
GuestStay = 7
Pay per guest stay value. This mode is only supported by campaigns with AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and BudgetType.STANDARD.
Implementations§
source§impl PaymentMode
impl PaymentMode
source§impl PaymentMode
impl PaymentMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PaymentMode
impl Clone for PaymentMode
source§fn clone(&self) -> PaymentMode
fn clone(&self) -> PaymentMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PaymentMode
impl Debug for PaymentMode
source§impl Default for PaymentMode
impl Default for PaymentMode
source§fn default() -> PaymentMode
fn default() -> PaymentMode
source§impl From<PaymentMode> for i32
impl From<PaymentMode> for i32
source§fn from(value: PaymentMode) -> i32
fn from(value: PaymentMode) -> i32
source§impl Hash for PaymentMode
impl Hash for PaymentMode
source§impl Ord for PaymentMode
impl Ord for PaymentMode
source§fn cmp(&self, other: &PaymentMode) -> Ordering
fn cmp(&self, other: &PaymentMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PaymentMode
impl PartialEq for PaymentMode
source§fn eq(&self, other: &PaymentMode) -> bool
fn eq(&self, other: &PaymentMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PaymentMode
impl PartialOrd for PaymentMode
source§fn partial_cmp(&self, other: &PaymentMode) -> Option<Ordering>
fn partial_cmp(&self, other: &PaymentMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PaymentMode
impl TryFrom<i32> for PaymentMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PaymentMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<PaymentMode, UnknownEnumValue>
impl Copy for PaymentMode
impl Eq for PaymentMode
impl StructuralPartialEq for PaymentMode
Auto Trait Implementations§
impl Freeze for PaymentMode
impl RefUnwindSafe for PaymentMode
impl Send for PaymentMode
impl Sync for PaymentMode
impl Unpin for PaymentMode
impl UnwindSafe for PaymentMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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