pub struct ProductListItemCreateResponse {
pub product_id: u64,
pub product_list_id: u64,
pub product_list_item_id: u64,
}Expand description
The created product list item.
Returned by POST /{api_version}/product_list_items. The API wraps this resource
in a JSON:API-style envelope on the wire ({"data": {"id": ..., "type": ..., "attributes": {"productId": ..., "productListId": ..., "productListItemId": ...}}});
Deserialize unwraps that envelope so callers work with a flat struct.
Fields§
§product_id: u64Unique identifier of the product added to the list.
product_list_id: u64Unique identifier of the product list the product was added to.
product_list_item_id: u64Unique identifier assigned to this product list item. Required to remove
the item later via DELETE /{api_version}/product_list_items/{id}.
Trait Implementations§
Source§impl Clone for ProductListItemCreateResponse
impl Clone for ProductListItemCreateResponse
Source§fn clone(&self) -> ProductListItemCreateResponse
fn clone(&self) -> ProductListItemCreateResponse
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<'de> Deserialize<'de> for ProductListItemCreateResponse
impl<'de> Deserialize<'de> for ProductListItemCreateResponse
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
Auto Trait Implementations§
impl Freeze for ProductListItemCreateResponse
impl RefUnwindSafe for ProductListItemCreateResponse
impl Send for ProductListItemCreateResponse
impl Sync for ProductListItemCreateResponse
impl Unpin for ProductListItemCreateResponse
impl UnsafeUnpin for ProductListItemCreateResponse
impl UnwindSafe for ProductListItemCreateResponse
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