Enum rust_tdlib::types::InputCredentials
source · pub enum InputCredentials {
ApplePay(InputCredentialsApplePay),
GooglePay(InputCredentialsGooglePay),
New(InputCredentialsNew),
Saved(InputCredentialsSaved),
// some variants omitted
}
Expand description
Contains information about the payment method chosen by the user
Variants§
ApplePay(InputCredentialsApplePay)
Applies if a user enters new credentials using Apple Pay
GooglePay(InputCredentialsGooglePay)
Applies if a user enters new credentials using Google 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§
Trait Implementations§
source§impl AsRef<InputCredentials> for InputCredentials
impl AsRef<InputCredentials> for InputCredentials
source§fn as_ref(&self) -> &InputCredentials
fn as_ref(&self) -> &InputCredentials
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for InputCredentials
impl Clone for InputCredentials
source§fn clone(&self) -> InputCredentials
fn clone(&self) -> InputCredentials
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InputCredentials
impl Debug for InputCredentials
source§impl Default for InputCredentials
impl Default for InputCredentials
source§fn default() -> InputCredentials
fn default() -> InputCredentials
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InputCredentials
impl<'de> Deserialize<'de> for InputCredentials
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