Skip to main content

artifacts/models/
buy_custom_design_request_schema.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5#[cfg_attr(feature = "specta", derive(specta::Type))]
6pub struct BuyCustomDesignRequestSchema {
7    /// Code of the custom design to purchase.
8    #[serde(rename = "code")]
9    pub code: String,
10}
11
12impl BuyCustomDesignRequestSchema {
13    pub fn new(code: String) -> BuyCustomDesignRequestSchema {
14        BuyCustomDesignRequestSchema { code }
15    }
16}