[][src]Enum rtdlib::types::InputCredentials

pub enum InputCredentials {
    AndroidPay(InputCredentialsAndroidPay),
    ApplePay(InputCredentialsApplePay),
    New(InputCredentialsNew),
    Saved(InputCredentialsSaved),
    // some variants omitted
}

Contains information about the payment method chosen by the user

Variants

Applies if a user enters new credentials using Android Pay

Applies if a user enters new credentials using Apple Pay

Applies if a user enters new credentials on a payment provider website

Applies if a user chooses some previously saved payment credentials. To use their previously saved credentials, the user must have a valid temporary password

Implementations

impl InputCredentials[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn is_android_pay(&self) -> bool[src]

pub fn is_apple_pay(&self) -> bool[src]

pub fn is_new(&self) -> bool[src]

pub fn is_saved(&self) -> bool[src]

pub fn on_android_pay<F: FnOnce(&InputCredentialsAndroidPay)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_apple_pay<F: FnOnce(&InputCredentialsApplePay)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_new<F: FnOnce(&InputCredentialsNew)>(&self, fnc: F) -> &Self[src]

pub fn on_saved<F: FnOnce(&InputCredentialsSaved)>(&self, fnc: F) -> &Self[src]

pub fn as_android_pay(&self) -> Option<&InputCredentialsAndroidPay>[src]

pub fn as_apple_pay(&self) -> Option<&InputCredentialsApplePay>[src]

pub fn as_new(&self) -> Option<&InputCredentialsNew>[src]

pub fn as_saved(&self) -> Option<&InputCredentialsSaved>[src]

pub fn android_pay<T: AsRef<InputCredentialsAndroidPay>>(t: T) -> Self[src]

pub fn apple_pay<T: AsRef<InputCredentialsApplePay>>(t: T) -> Self[src]

pub fn new<T: AsRef<InputCredentialsNew>>(t: T) -> Self[src]

pub fn saved<T: AsRef<InputCredentialsSaved>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<InputCredentials> for InputCredentials[src]

impl Clone for InputCredentials[src]

impl Debug for InputCredentials[src]

impl Default for InputCredentials[src]

impl<'de> Deserialize<'de> for InputCredentials[src]

impl RObject for InputCredentials[src]

impl Serialize for InputCredentials[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.