Struct rust_tdlib::types::PaymentForm
source · pub struct PaymentForm { /* private fields */ }
Expand description
Contains information about an invoice payment form
Implementations§
source§impl PaymentForm
impl PaymentForm
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PaymentFormBuilder
pub fn id(&self) -> i64
pub fn invoice(&self) -> &Invoice
pub fn url(&self) -> &String
pub fn seller_bot_user_id(&self) -> i64
pub fn payments_provider_user_id(&self) -> i64
pub fn payments_provider(&self) -> &Option<PaymentsProviderStripe>
pub fn saved_order_info(&self) -> &Option<OrderInfo>
pub fn saved_credentials(&self) -> &Option<SavedCredentials>
pub fn can_save_credentials(&self) -> bool
pub fn need_password(&self) -> bool
Trait Implementations§
source§impl AsRef<PaymentForm> for PaymentForm
impl AsRef<PaymentForm> for PaymentForm
source§fn as_ref(&self) -> &PaymentForm
fn as_ref(&self) -> &PaymentForm
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PaymentForm
impl Clone for PaymentForm
source§fn clone(&self) -> PaymentForm
fn clone(&self) -> PaymentForm
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 PaymentForm
impl Debug for PaymentForm
source§impl Default for PaymentForm
impl Default for PaymentForm
source§fn default() -> PaymentForm
fn default() -> PaymentForm
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PaymentForm
impl<'de> Deserialize<'de> for PaymentForm
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