pub struct PaymentForm {Show 13 fields
pub id: i64,
pub invoice: Invoice,
pub seller_bot_user_id: i64,
pub payment_provider_user_id: i64,
pub payment_provider: PaymentProvider,
pub additional_payment_options: Vec<PaymentOption>,
pub saved_order_info: Option<OrderInfo>,
pub saved_credentials: Vec<SavedCredentials>,
pub can_save_credentials: bool,
pub need_password: bool,
pub product_title: String,
pub product_description: FormattedText,
pub product_photo: Option<Photo>,
}
Expand description
Contains information about an invoice payment form
Fields§
§id: i64
The payment form identifier
invoice: Invoice
Full information about the invoice
seller_bot_user_id: i64
User identifier of the seller bot
payment_provider_user_id: i64
User identifier of the payment provider bot
payment_provider: PaymentProvider
Information about the payment provider
additional_payment_options: Vec<PaymentOption>
The list of additional payment options
saved_order_info: Option<OrderInfo>
Saved server-side order information; may be null
saved_credentials: Vec<SavedCredentials>
The list of saved payment credentials
can_save_credentials: bool
True, if the user can choose to save credentials
need_password: bool
True, if the user will be able to save credentials, if sets up a 2-step verification password
product_title: String
Product title
product_description: FormattedText
Product description
product_photo: Option<Photo>
Product photo; may be null
Trait Implementations§
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<'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
Source§impl PartialEq for PaymentForm
impl PartialEq for PaymentForm
Source§impl Serialize for PaymentForm
impl Serialize for PaymentForm
impl StructuralPartialEq for PaymentForm
Auto Trait Implementations§
impl Freeze for PaymentForm
impl RefUnwindSafe for PaymentForm
impl Send for PaymentForm
impl Sync for PaymentForm
impl Unpin for PaymentForm
impl UnwindSafe for PaymentForm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more