pub enum PaymentRecognition {
CC,
Debit,
Alipay,
ApplePay,
GooglePay,
GrabPay,
PayPal,
SamsungPay,
WeChatPay,
}Expand description
Standardized paymentRecognition values, for the ad hoc payment flow.
A closed set: it holds only the values the specification
defines. The wire field is a string, so a deployment can still
send something else – from_wire returns None for that,
which is not by itself a protocol error.
Variants§
Implementations§
Source§impl PaymentRecognition
impl PaymentRecognition
Trait Implementations§
Source§impl Clone for PaymentRecognition
impl Clone for PaymentRecognition
Source§fn clone(&self) -> PaymentRecognition
fn clone(&self) -> PaymentRecognition
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 PaymentRecognition
Source§impl Debug for PaymentRecognition
impl Debug for PaymentRecognition
Source§impl<'de> Deserialize<'de> for PaymentRecognition
impl<'de> Deserialize<'de> for PaymentRecognition
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 PaymentRecognition
impl Display for PaymentRecognition
impl Eq for PaymentRecognition
Source§impl FromStr for PaymentRecognition
impl FromStr for PaymentRecognition
Source§impl Hash for PaymentRecognition
impl Hash for PaymentRecognition
Source§impl Ord for PaymentRecognition
impl Ord for PaymentRecognition
Source§fn cmp(&self, other: &PaymentRecognition) -> Ordering
fn cmp(&self, other: &PaymentRecognition) -> 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 PaymentRecognition
impl PartialEq for PaymentRecognition
Source§impl PartialOrd for PaymentRecognition
impl PartialOrd for PaymentRecognition
Source§impl Serialize for PaymentRecognition
impl Serialize for PaymentRecognition
impl StructuralPartialEq for PaymentRecognition
Auto Trait Implementations§
impl Freeze for PaymentRecognition
impl RefUnwindSafe for PaymentRecognition
impl Send for PaymentRecognition
impl Sync for PaymentRecognition
impl Unpin for PaymentRecognition
impl UnsafeUnpin for PaymentRecognition
impl UnwindSafe for PaymentRecognition
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