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