pub struct UpdateCartItem {
pub quantity: Option<i32>,
pub unit_price: Option<Decimal>,
pub discount_amount: Option<Decimal>,
pub metadata: Option<Value>,
}Expand description
Input for updating a cart item
Fields§
§quantity: Option<i32>§unit_price: Option<Decimal>§discount_amount: Option<Decimal>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for UpdateCartItem
impl Clone for UpdateCartItem
Source§fn clone(&self) -> UpdateCartItem
fn clone(&self) -> UpdateCartItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateCartItem
impl Debug for UpdateCartItem
Source§impl Default for UpdateCartItem
impl Default for UpdateCartItem
Source§fn default() -> UpdateCartItem
fn default() -> UpdateCartItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateCartItem
impl<'de> Deserialize<'de> for UpdateCartItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateCartItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateCartItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateCartItem
impl Serialize for UpdateCartItem
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateCartItem
impl RefUnwindSafe for UpdateCartItem
impl Send for UpdateCartItem
impl Sync for UpdateCartItem
impl Unpin for UpdateCartItem
impl UnsafeUnpin for UpdateCartItem
impl UnwindSafe for UpdateCartItem
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