pub struct PaymentFormTypeRegular {
pub invoice: Invoice,
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,
}Expand description
The payment form is for a regular payment
Fields§
§invoice: InvoiceFull information about the invoice
payment_provider_user_id: i64User identifier of the payment provider bot
payment_provider: PaymentProviderInformation 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: boolTrue, if the user can choose to save credentials
need_password: boolTrue, if the user will be able to save credentials, if sets up a 2-step verification password
Trait Implementations§
Source§impl Clone for PaymentFormTypeRegular
impl Clone for PaymentFormTypeRegular
Source§fn clone(&self) -> PaymentFormTypeRegular
fn clone(&self) -> PaymentFormTypeRegular
Returns a duplicate 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 PaymentFormTypeRegular
impl Debug for PaymentFormTypeRegular
Source§impl<'de> Deserialize<'de> for PaymentFormTypeRegular
impl<'de> Deserialize<'de> for PaymentFormTypeRegular
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 PaymentFormTypeRegular
impl PartialEq for PaymentFormTypeRegular
Source§impl Serialize for PaymentFormTypeRegular
impl Serialize for PaymentFormTypeRegular
impl StructuralPartialEq for PaymentFormTypeRegular
Auto Trait Implementations§
impl Freeze for PaymentFormTypeRegular
impl RefUnwindSafe for PaymentFormTypeRegular
impl Send for PaymentFormTypeRegular
impl Sync for PaymentFormTypeRegular
impl Unpin for PaymentFormTypeRegular
impl UnsafeUnpin for PaymentFormTypeRegular
impl UnwindSafe for PaymentFormTypeRegular
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