[−][src]Enum rtdlib::types::InputCredentials
Contains information about the payment method chosen by the user
Variants
AndroidPay(InputCredentialsAndroidPay)
Applies if a user enters new credentials using Android Pay
ApplePay(InputCredentialsApplePay)
Applies if a user enters new credentials using Apple Pay
New(InputCredentialsNew)
Applies if a user enters new credentials on a payment provider website
Saved(InputCredentialsSaved)
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]
&self,
fnc: F
) -> &Self
pub fn on_apple_pay<F: FnOnce(&InputCredentialsApplePay)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
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]
fn as_ref(&self) -> &InputCredentials
[src]
impl Clone for InputCredentials
[src]
fn clone(&self) -> InputCredentials
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputCredentials
[src]
impl Default for InputCredentials
[src]
impl<'de> Deserialize<'de> for InputCredentials
[src]
fn deserialize<D>(deserializer: D) -> Result<InputCredentials, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for InputCredentials
[src]
impl Serialize for InputCredentials
[src]
Auto Trait Implementations
impl RefUnwindSafe for InputCredentials
impl Send for InputCredentials
impl Sync for InputCredentials
impl Unpin for InputCredentials
impl UnwindSafe for InputCredentials
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,