Skip to main content

artifacts/models/
gem_shop_custom_design_purchase_response_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 GemShopCustomDesignPurchaseResponseSchema {
7    #[serde(rename = "data")]
8    pub data: Box<models::GemShopCustomDesignPurchaseResponseDataSchema>,
9}
10
11impl GemShopCustomDesignPurchaseResponseSchema {
12    pub fn new(
13        data: models::GemShopCustomDesignPurchaseResponseDataSchema,
14    ) -> GemShopCustomDesignPurchaseResponseSchema {
15        GemShopCustomDesignPurchaseResponseSchema {
16            data: Box::new(data),
17        }
18    }
19}
20
21impl crate::traits::IntoData for GemShopCustomDesignPurchaseResponseSchema {
22    type Data = Box<models::GemShopCustomDesignPurchaseResponseDataSchema>;
23    fn into_data(self) -> Self::Data {
24        self.data
25    }
26}