pub struct SetCartPaymentInput {
pub payment_method: String,
pub payment_token: Option<String>,
}Fields§
§payment_method: String§payment_token: Option<String>Trait Implementations§
Source§impl Clone for SetCartPaymentInput
impl Clone for SetCartPaymentInput
Source§fn clone(&self) -> SetCartPaymentInput
fn clone(&self) -> SetCartPaymentInput
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<'de> Deserialize<'de> for SetCartPaymentInput
impl<'de> Deserialize<'de> for SetCartPaymentInput
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 FromNapiValue for SetCartPaymentInput
impl FromNapiValue for SetCartPaymentInput
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl Serialize for SetCartPaymentInput
impl Serialize for SetCartPaymentInput
Source§impl ToNapiValue for SetCartPaymentInput
impl ToNapiValue for SetCartPaymentInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: SetCartPaymentInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: SetCartPaymentInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for SetCartPaymentInput
impl TypeName for SetCartPaymentInput
Source§impl ValidateNapiValue for SetCartPaymentInput
impl ValidateNapiValue for SetCartPaymentInput
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for SetCartPaymentInput
impl RefUnwindSafe for SetCartPaymentInput
impl Send for SetCartPaymentInput
impl Sync for SetCartPaymentInput
impl Unpin for SetCartPaymentInput
impl UnsafeUnpin for SetCartPaymentInput
impl UnwindSafe for SetCartPaymentInput
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