pub struct PaymentForm {
pub invoice: Invoice,
pub url: String,
pub payments_provider: Option<PaymentsProviderStripe>,
pub saved_order_info: Option<OrderInfo>,
pub saved_credentials: Option<SavedCredentials>,
pub can_save_credentials: bool,
pub need_password: bool,
}
Expand description
Contains information about an invoice payment form
Fields§
§invoice: Invoice
Full information of the invoice
url: String
Payment form URL
payments_provider: Option<PaymentsProviderStripe>
Contains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null
saved_order_info: Option<OrderInfo>
Saved server-side order information; may be null
saved_credentials: Option<SavedCredentials>
Contains information about saved card credentials; may be null
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 protected by a password they set up
Trait Implementations§
Source§impl Clone for PaymentForm
impl Clone for PaymentForm
Source§fn clone(&self) -> PaymentForm
fn clone(&self) -> PaymentForm
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 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
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