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