space_traders/models/
ship_refine_201_response_data_produced_inner.rs

1//! Generated by: <https://openapi-generator.tech>
2//!
3//! Version of specification: `2.0.0`
4
5use serde::{Deserialize, Serialize};
6
7///
8#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
9pub struct ShipRefine201ResponseDataProducedInner {
10    /// Symbol of the good.
11    #[serde(rename = "tradeSymbol")]
12    pub trade_symbol: String,
13    /// Amount of units of the good.
14    #[serde(rename = "units")]
15    pub units: i32,
16}
17
18impl ShipRefine201ResponseDataProducedInner {
19    /// Create value with optional fields set to `None`.
20    #[allow(clippy::too_many_arguments)]
21    pub fn new(trade_symbol: String, units: i32) -> ShipRefine201ResponseDataProducedInner {
22        ShipRefine201ResponseDataProducedInner {
23            trade_symbol,
24            units,
25        }
26    }
27}