pub enum PaymentMethod {
Card,
Netbanking,
Wallet,
Upi,
Emi,
Paylater,
Cardless,
Unknown,
}Expand description
How a payment was made.
Carries an Unknown fallback: Razorpay adds methods
without a version bump, and a strict enum would turn that into a decode failure
on a previously working integration.
Variants§
Card
Credit or debit card.
Netbanking
Netbanking.
Wallet
Wallet (Paytm, PhonePe, …).
Upi
UPI.
Emi
EMI.
Paylater
Pay-later provider.
Cardless
Cardless EMI.
Unknown
A method this crate does not model yet.
Trait Implementations§
Source§impl Clone for PaymentMethod
impl Clone for PaymentMethod
Source§impl Debug for PaymentMethod
impl Debug for PaymentMethod
Source§impl<'de> Deserialize<'de> for PaymentMethod
impl<'de> Deserialize<'de> for PaymentMethod
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 PaymentMethod
Source§impl PartialEq for PaymentMethod
impl PartialEq for PaymentMethod
Source§impl Serialize for PaymentMethod
impl Serialize for PaymentMethod
impl StructuralPartialEq for PaymentMethod
Auto Trait Implementations§
impl Freeze for PaymentMethod
impl RefUnwindSafe for PaymentMethod
impl Send for PaymentMethod
impl Sync for PaymentMethod
impl Unpin for PaymentMethod
impl UnsafeUnpin for PaymentMethod
impl UnwindSafe for PaymentMethod
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,
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.