pub enum PaymentInitiator {
Customer,
Merchant,
}
Expand description
The person or party who initiated or triggered the payment.
Variants§
Customer
Payment is initiated with the active engagement of the customer. e.g. a customer checking out on a merchant website.
Merchant
Payment is initiated by merchant on behalf of the customer without the active engagement of customer. e.g. a merchant charging the monthly payment of a subscription to the customer.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for PaymentInitiator
impl AsRef<str> for PaymentInitiator
Source§impl Clone for PaymentInitiator
impl Clone for PaymentInitiator
Source§fn clone(&self) -> PaymentInitiator
fn clone(&self) -> PaymentInitiator
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PaymentInitiator
impl Debug for PaymentInitiator
Source§impl Default for PaymentInitiator
impl Default for PaymentInitiator
Source§fn default() -> PaymentInitiator
fn default() -> PaymentInitiator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentInitiator
impl<'de> Deserialize<'de> for PaymentInitiator
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
Source§impl Display for PaymentInitiator
impl Display for PaymentInitiator
Source§impl PartialEq for PaymentInitiator
impl PartialEq for PaymentInitiator
Source§impl Serialize for PaymentInitiator
impl Serialize for PaymentInitiator
impl Copy for PaymentInitiator
impl Eq for PaymentInitiator
impl StructuralPartialEq for PaymentInitiator
Auto Trait Implementations§
impl Freeze for PaymentInitiator
impl RefUnwindSafe for PaymentInitiator
impl Send for PaymentInitiator
impl Sync for PaymentInitiator
impl Unpin for PaymentInitiator
impl UnwindSafe for PaymentInitiator
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> 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.