pub struct TokenizedPaymentSourceRequestBody {
pub type: PaymentMethodType,
pub token: String,
}
Fields§
§type: PaymentMethodType
§token: String
Implementations§
Source§impl TokenizedPaymentSourceRequestBody
impl TokenizedPaymentSourceRequestBody
pub fn new( type: PaymentMethodType, token: String, ) -> TokenizedPaymentSourceRequestBody
Trait Implementations§
Source§impl Clone for TokenizedPaymentSourceRequestBody
impl Clone for TokenizedPaymentSourceRequestBody
Source§fn clone(&self) -> TokenizedPaymentSourceRequestBody
fn clone(&self) -> TokenizedPaymentSourceRequestBody
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 Default for TokenizedPaymentSourceRequestBody
impl Default for TokenizedPaymentSourceRequestBody
Source§fn default() -> TokenizedPaymentSourceRequestBody
fn default() -> TokenizedPaymentSourceRequestBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TokenizedPaymentSourceRequestBody
impl<'de> Deserialize<'de> for TokenizedPaymentSourceRequestBody
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 TokenizedPaymentSourceRequestBody
impl PartialEq for TokenizedPaymentSourceRequestBody
Source§fn eq(&self, other: &TokenizedPaymentSourceRequestBody) -> bool
fn eq(&self, other: &TokenizedPaymentSourceRequestBody) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TokenizedPaymentSourceRequestBody
Auto Trait Implementations§
impl Freeze for TokenizedPaymentSourceRequestBody
impl RefUnwindSafe for TokenizedPaymentSourceRequestBody
impl Send for TokenizedPaymentSourceRequestBody
impl Sync for TokenizedPaymentSourceRequestBody
impl Unpin for TokenizedPaymentSourceRequestBody
impl UnwindSafe for TokenizedPaymentSourceRequestBody
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