pub struct PaymentRequestData {Show 13 fields
pub amount: Option<String>,
pub title: Option<String>,
pub currency: Option<String>,
pub email: Option<String>,
pub description: Option<String>,
pub expiry_date: Option<f32>,
pub embedded_css: Option<String>,
pub custom_css_link: Option<String>,
pub allow_custom_payment_amounts: Option<bool>,
pub id: Option<String>,
pub store_id: Option<String>,
pub status: Option<Status>,
pub created_time: Option<f32>,
}Fields§
§amount: Option<String>The amount of the payment request
title: Option<String>The title of the payment request
currency: Option<String>The currency of the payment request. If empty, the store’s default currency code will be used.
email: Option<String>The email used in invoices generated by the payment request
description: Option<String>The description of the payment request
expiry_date: Option<f32>The expiry date of the payment request
embedded_css: Option<String>Custom CSS styling for the payment request
custom_css_link: Option<String>Custom CSS link for styling the payment request
allow_custom_payment_amounts: Option<bool>Whether to allow users to create invoices that partially pay the payment request
id: Option<String>The id of the payment request
store_id: Option<String>The store identifier that the payment request belongs to
status: Option<Status>The status of the payment request
created_time: Option<f32>The creation date of the payment request
Implementations§
Source§impl PaymentRequestData
impl PaymentRequestData
pub fn new() -> PaymentRequestData
Trait Implementations§
Source§impl Clone for PaymentRequestData
impl Clone for PaymentRequestData
Source§fn clone(&self) -> PaymentRequestData
fn clone(&self) -> PaymentRequestData
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 PaymentRequestData
impl Debug for PaymentRequestData
Source§impl Default for PaymentRequestData
impl Default for PaymentRequestData
Source§fn default() -> PaymentRequestData
fn default() -> PaymentRequestData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentRequestData
impl<'de> Deserialize<'de> for PaymentRequestData
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 PaymentRequestData
impl PartialEq for PaymentRequestData
Source§impl Serialize for PaymentRequestData
impl Serialize for PaymentRequestData
impl StructuralPartialEq for PaymentRequestData
Auto Trait Implementations§
impl Freeze for PaymentRequestData
impl RefUnwindSafe for PaymentRequestData
impl Send for PaymentRequestData
impl Sync for PaymentRequestData
impl Unpin for PaymentRequestData
impl UnwindSafe for PaymentRequestData
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