1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use serde::{Deserialize, Serialize};
use crate::ImageFormat;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[cfg_attr(feature = "schema", schemars(deny_unknown_fields))]
#[serde(rename_all = "camelCase")]
/// Product preview image, preferably a perspective image with 1k size.
pub struct Preview {
/// The mandatory format of the image.
pub image_format: ImageFormat,
/// The manadatory image reference.
pub image: String,
}