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<PaymentRequestModel> for PaymentRequestModel
impl PartialEq<PaymentRequestModel> for PaymentRequestModel
source§fn eq(&self, other: &PaymentRequestModel) -> bool
fn eq(&self, other: &PaymentRequestModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.