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
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

#[derive(Clone, Serialize, Deserialize, JsonSchema)]
pub struct Image {
    pub url: String,
    pub title: Option<String>,
    pub dimensions: Option<ImageDimensions>,
}

#[derive(Clone, Serialize, Deserialize, JsonSchema)]
pub struct ImageDimensions {
    pub width: f64,
    pub height: f64,
}