#[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§impl PartialOrd for PaymentMode
impl PartialOrd for PaymentMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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