Enum clacks_mtproto::mtproto::InputPaymentCredentials
[−]
[src]
pub enum InputPaymentCredentials { Saved(Saved), InputPaymentCredentials(InputPaymentCredentials), ApplePay(ApplePay), AndroidPay(AndroidPay), }
TL-derived from InputPaymentCredentials
inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials;
inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials;
inputPaymentCredentialsAndroidPay#795667a6 payment_token:DataJSON = InputPaymentCredentials;
Variants
Saved(Saved)
InputPaymentCredentials(InputPaymentCredentials)
ApplePay(ApplePay)
AndroidPay(AndroidPay)
Methods
impl InputPaymentCredentials
[src]
pub fn data(&self) -> Option<&DataJSON>
[src]
pub fn id(&self) -> Option<&string>
[src]
pub fn payment_data(&self) -> Option<&DataJSON>
[src]
pub fn payment_token(&self) -> Option<&DataJSON>
[src]
pub fn save(&self) -> Option<bool>
[src]
pub fn tmp_password(&self) -> Option<&bytes>
[src]
Trait Implementations
impl Debug for InputPaymentCredentials
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for InputPaymentCredentials
[src]
fn clone(&self) -> InputPaymentCredentials
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BoxedSerialize for InputPaymentCredentials
[src]
fn serialize_boxed<'this>(
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
[src]
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
fn boxed_serialized_bytes(&self) -> Result<Vec<u8>>
[src]
impl BoxedDeserialize for InputPaymentCredentials
[src]
fn possible_constructors() -> Vec<ConstructorNumber>
[src]
fn deserialize_boxed(
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>
[src]
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>