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
sourceimpl AsRef<InputCredentials> for InputCredentials
impl AsRef<InputCredentials> for InputCredentials
sourcefn as_ref(&self) -> &InputCredentials
fn as_ref(&self) -> &InputCredentials
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InputCredentials
impl Clone for InputCredentials
sourcefn clone(&self) -> InputCredentials
fn clone(&self) -> InputCredentials
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for InputCredentials
impl Debug for InputCredentials
sourceimpl Default for InputCredentials
impl Default for InputCredentials
sourceimpl<'de> Deserialize<'de> for InputCredentials
impl<'de> Deserialize<'de> for InputCredentials
sourcefn 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
sourceimpl Serialize for InputCredentials
impl Serialize for InputCredentials
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more