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