pub struct UpdateCartInput {
pub customer_email: Option<String>,
pub customer_phone: Option<String>,
pub customer_name: Option<String>,
pub shipping_method: Option<String>,
pub coupon_code: Option<String>,
pub notes: Option<String>,
}Fields§
§customer_email: Option<String>§customer_phone: Option<String>§customer_name: Option<String>§shipping_method: Option<String>§coupon_code: Option<String>§notes: Option<String>Trait Implementations§
Source§impl Clone for UpdateCartInput
impl Clone for UpdateCartInput
Source§fn clone(&self) -> UpdateCartInput
fn clone(&self) -> UpdateCartInput
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 UpdateCartInput
impl<'de> Deserialize<'de> for UpdateCartInput
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 UpdateCartInput
impl FromNapiValue for UpdateCartInput
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 UpdateCartInput
impl Serialize for UpdateCartInput
Source§impl ToNapiValue for UpdateCartInput
impl ToNapiValue for UpdateCartInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: UpdateCartInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: UpdateCartInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for UpdateCartInput
impl TypeName for UpdateCartInput
Source§impl ValidateNapiValue for UpdateCartInput
impl ValidateNapiValue for UpdateCartInput
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 UpdateCartInput
impl RefUnwindSafe for UpdateCartInput
impl Send for UpdateCartInput
impl Sync for UpdateCartInput
impl Unpin for UpdateCartInput
impl UnsafeUnpin for UpdateCartInput
impl UnwindSafe for UpdateCartInput
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