Struct windows::ApplicationModel::Payments::PaymentToken
pub struct PaymentToken(/* private fields */);
Implementations§
§impl PaymentToken
impl PaymentToken
pub fn PaymentMethodId(&self) -> Result<HSTRING>
pub fn JsonDetails(&self) -> Result<HSTRING>
pub fn Create(paymentmethodid: &HSTRING) -> Result<PaymentToken>
pub fn CreateWithJsonDetails( paymentmethodid: &HSTRING, jsondetails: &HSTRING ) -> Result<PaymentToken>
Trait Implementations§
§impl Clone for PaymentToken
impl Clone for PaymentToken
§fn clone(&self) -> PaymentToken
fn clone(&self) -> PaymentToken
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 more§impl Debug for PaymentToken
impl Debug for PaymentToken
§impl From<&PaymentToken> for &IInspectable
impl From<&PaymentToken> for &IInspectable
§fn from(value: &PaymentToken) -> Self
fn from(value: &PaymentToken) -> Self
Converts to this type from the input type.
§impl From<&PaymentToken> for &IUnknown
impl From<&PaymentToken> for &IUnknown
§fn from(value: &PaymentToken) -> Self
fn from(value: &PaymentToken) -> Self
Converts to this type from the input type.
§impl From<PaymentToken> for IInspectable
impl From<PaymentToken> for IInspectable
§fn from(value: PaymentToken) -> Self
fn from(value: PaymentToken) -> Self
Converts to this type from the input type.
§impl From<PaymentToken> for IUnknown
impl From<PaymentToken> for IUnknown
§fn from(value: PaymentToken) -> Self
fn from(value: PaymentToken) -> Self
Converts to this type from the input type.
§impl Interface for PaymentToken
impl Interface for PaymentToken
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for PaymentToken
impl PartialEq for PaymentToken
§fn eq(&self, other: &PaymentToken) -> bool
fn eq(&self, other: &PaymentToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PaymentToken
impl Send for PaymentToken
impl StructuralPartialEq for PaymentToken
impl Sync for PaymentToken
Auto Trait Implementations§
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