checkout_core 0.0.147

core traits and structs for the checkout_controller crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

use crate::{image::Image, money::Money};

#[derive(Clone, Serialize, Deserialize, JsonSchema)]
pub struct Item {
    pub sku: String,
    pub url: String,
    pub title: String,
    pub description: Option<String>,
    pub quantity: u64,
    pub price: Money,
    pub discount: Money,
    pub images: Vec<Image>,
}