pub struct CartItemWithoutFinalPriceCamelCase {
pub product_id: String,
pub quantity: ItemQuantity,
pub description: Option<String>,
pub discounted_unit_price: Option<f64>,
pub features: Option<CartItemFeatures>,
pub measurements: Option<Measurements>,
pub points_amount: Option<f64>,
pub receipt: Option<ItemReceipt>,
pub subtotal: Option<f64>,
pub title: Option<String>,
pub item_type: Option<CartItemType>,
pub unit_price: Option<f64>,
}Expand description
Fields§
§product_id: StringId товара в системе продавца
quantity: ItemQuantityКоличество товара в заказе
description: Option<String>Описание товара
discounted_unit_price: Option<f64>Цена за единицу товара с учётом скидок на позицию
features: Option<CartItemFeatures>Промо параметры товара
measurements: Option<Measurements>Размеры и вес товара
points_amount: Option<f64>Количество баллов Плюса
receipt: Option<ItemReceipt>Данные для формирования чека
subtotal: Option<f64>Суммарная цена за позицию без учета скидок
title: Option<String>Наименование товара
item_type: Option<CartItemType>Тип товара
unit_price: Option<f64>Полная цена за единицу товара без учёта скидки
Implementations§
Source§impl CartItemWithoutFinalPriceCamelCase
impl CartItemWithoutFinalPriceCamelCase
Sourcepub fn new<'fn_lifetime>() -> CartItemWithoutFinalPriceCamelCaseBuilder<'fn_lifetime, (), (), (), (), (), (), (), (), (), (), (), (), (), ()>
pub fn new<'fn_lifetime>() -> CartItemWithoutFinalPriceCamelCaseBuilder<'fn_lifetime, (), (), (), (), (), (), (), (), (), (), (), (), (), ()>
Creating a builder.
§Required Fields
§product_id
- Type:
Into<String>
Id товара в системе продавца
§quantity
- Type:
ItemQuantity
Количество товара в заказе
§Optional Fields
§description
- Type:
Option < String > - Default:
None
Описание товара
§discounted_unit_price
- Type:
Option < f64 > - Default:
None
Цена за единицу товара с учётом скидок на позицию
§features
- Type:
Option < CartItemFeatures > - Default:
None
Промо параметры товара
§item_type
- Type:
Option < CartItemType > - Default:
None
Тип товара
§measurements
- Type:
Option < Measurements > - Default:
None
Размеры и вес товара
§points_amount
- Type:
Option < f64 > - Default:
None
Количество баллов Плюса
§receipt
- Type:
Option < ItemReceipt > - Default:
None
Данные для формирования чека
§subtotal
- Type:
Option < f64 > - Default:
None
Суммарная цена за позицию без учета скидок
§title
- Type:
Option < String > - Default:
None
Наименование товара
§unit_price
- Type:
Option < f64 > - Default:
None
Полная цена за единицу товара без учёта скидки
Trait Implementations§
Source§impl Clone for CartItemWithoutFinalPriceCamelCase
impl Clone for CartItemWithoutFinalPriceCamelCase
Source§fn clone(&self) -> CartItemWithoutFinalPriceCamelCase
fn clone(&self) -> CartItemWithoutFinalPriceCamelCase
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 CartItemWithoutFinalPriceCamelCase
impl<'de> Deserialize<'de> for CartItemWithoutFinalPriceCamelCase
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 CartItemWithoutFinalPriceCamelCase
impl RefUnwindSafe for CartItemWithoutFinalPriceCamelCase
impl Send for CartItemWithoutFinalPriceCamelCase
impl Sync for CartItemWithoutFinalPriceCamelCase
impl Unpin for CartItemWithoutFinalPriceCamelCase
impl UnwindSafe for CartItemWithoutFinalPriceCamelCase
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