pub struct PaymentRequestModel {
pub country: String,
pub postal_code: Option<String>,
pub tax_id: Option<String>,
pub line1: Option<String>,
pub line2: Option<String>,
pub city: Option<String>,
pub state: Option<String>,
pub payment_method_type: PaymentMethodType,
pub payment_token: String,
}
Fields§
§country: String
§postal_code: Option<String>
§tax_id: Option<String>
§line1: Option<String>
§line2: Option<String>
§city: Option<String>
§state: Option<String>
§payment_method_type: PaymentMethodType
§payment_token: String
Implementations§
Source§impl PaymentRequestModel
impl PaymentRequestModel
pub fn new( country: String, payment_method_type: PaymentMethodType, payment_token: String, ) -> PaymentRequestModel
Trait Implementations§
Source§impl Clone for PaymentRequestModel
impl Clone for PaymentRequestModel
Source§fn clone(&self) -> PaymentRequestModel
fn clone(&self) -> PaymentRequestModel
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 PaymentRequestModel
impl Debug for PaymentRequestModel
Source§impl Default for PaymentRequestModel
impl Default for PaymentRequestModel
Source§fn default() -> PaymentRequestModel
fn default() -> PaymentRequestModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentRequestModel
impl<'de> Deserialize<'de> for PaymentRequestModel
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 PaymentRequestModel
impl PartialEq for PaymentRequestModel
Source§impl Serialize for PaymentRequestModel
impl Serialize for PaymentRequestModel
impl StructuralPartialEq for PaymentRequestModel
Auto Trait Implementations§
impl Freeze for PaymentRequestModel
impl RefUnwindSafe for PaymentRequestModel
impl Send for PaymentRequestModel
impl Sync for PaymentRequestModel
impl Unpin for PaymentRequestModel
impl UnwindSafe for PaymentRequestModel
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