pub struct CartItemView {
pub item_id: String,
pub ean: String,
pub name: String,
pub amount: f64,
pub unit: String,
pub price: Option<f64>,
pub price_unit: Option<String>,
pub price_is_approximate: bool,
}Fields§
§item_id: StringPass this as item_id to update_cart_item / remove_from_cart.
ean: String§name: String§amount: f64§unit: String§price: Option<f64>§price_unit: Option<String>§price_is_approximate: boolWeight-priced item: the final charge is settled when the order is picked.
Trait Implementations§
Source§impl Clone for CartItemView
impl Clone for CartItemView
Source§fn clone(&self) -> CartItemView
fn clone(&self) -> CartItemView
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 CartItemView
impl Debug for CartItemView
Source§impl JsonSchema for CartItemView
impl JsonSchema for CartItemView
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for CartItemView
impl RefUnwindSafe for CartItemView
impl Send for CartItemView
impl Sync for CartItemView
impl Unpin for CartItemView
impl UnsafeUnpin for CartItemView
impl UnwindSafe for CartItemView
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