pub enum FiatOnRampPaymentMethod {
Show 14 variants
Unspecified = 0,
CreditDebitCard = 1,
ApplePay = 2,
GbpBankTransfer = 3,
GbpOpenBankingPayment = 4,
GooglePay = 5,
SepaBankTransfer = 6,
PixInstantPayment = 7,
Paypal = 8,
Venmo = 9,
MoonpayBalance = 10,
CryptoAccount = 11,
FiatWallet = 12,
AchBankAccount = 13,
}Variants§
Unspecified = 0
Unspecified
CreditDebitCard = 1
Shared methods (supported by both MoonPay and Coinbase)
MoonPay: CREDIT_DEBIT_CARD, Coinbase: CARD
ApplePay = 2
MoonPay: APPLE_PAY, Coinbase: APPLE_PAY
GbpBankTransfer = 3
MoonPay-specific methods
MoonPay: GBP_BANK_TRANSFER
GbpOpenBankingPayment = 4
MoonPay: GBP_OPEN_BANKING_PAYMENT
GooglePay = 5
MoonPay: GOOGLE_PAY
SepaBankTransfer = 6
MoonPay: SEPA_BANK_TRANSFER
PixInstantPayment = 7
MoonPay: PIX_INSTANT_PAYMENT
Paypal = 8
MoonPay: PAYPAL
Venmo = 9
MoonPay: VENMO
MoonpayBalance = 10
MoonPay: MOONPAY_BALANCE
CryptoAccount = 11
Coinbase-specific methods
Coinbase: CRYPTO_ACCOUNT
FiatWallet = 12
Coinbase: FIAT_WALLET
AchBankAccount = 13
Coinbase: ACH_BANK_ACCOUNT
Implementations§
Source§impl FiatOnRampPaymentMethod
impl FiatOnRampPaymentMethod
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 FiatOnRampPaymentMethod
impl Clone for FiatOnRampPaymentMethod
Source§fn clone(&self) -> FiatOnRampPaymentMethod
fn clone(&self) -> FiatOnRampPaymentMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FiatOnRampPaymentMethod
Source§impl Debug for FiatOnRampPaymentMethod
impl Debug for FiatOnRampPaymentMethod
Source§impl<'de> Deserialize<'de> for FiatOnRampPaymentMethod
impl<'de> Deserialize<'de> for FiatOnRampPaymentMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FiatOnRampPaymentMethod
Source§impl Hash for FiatOnRampPaymentMethod
impl Hash for FiatOnRampPaymentMethod
Source§impl Ord for FiatOnRampPaymentMethod
impl Ord for FiatOnRampPaymentMethod
Source§fn cmp(&self, other: &FiatOnRampPaymentMethod) -> Ordering
fn cmp(&self, other: &FiatOnRampPaymentMethod) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FiatOnRampPaymentMethod
impl PartialEq for FiatOnRampPaymentMethod
Source§impl PartialOrd for FiatOnRampPaymentMethod
impl PartialOrd for FiatOnRampPaymentMethod
Source§impl Serialize for FiatOnRampPaymentMethod
impl Serialize for FiatOnRampPaymentMethod
impl StructuralPartialEq for FiatOnRampPaymentMethod
Auto Trait Implementations§
impl Freeze for FiatOnRampPaymentMethod
impl RefUnwindSafe for FiatOnRampPaymentMethod
impl Send for FiatOnRampPaymentMethod
impl Sync for FiatOnRampPaymentMethod
impl Unpin for FiatOnRampPaymentMethod
impl UnsafeUnpin for FiatOnRampPaymentMethod
impl UnwindSafe for FiatOnRampPaymentMethod
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
Mutably borrows from an owned value. Read more
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.