space_traders/models/
jettison_request.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 JettisonRequest {
10    #[serde(rename = "symbol")]
11    pub symbol: crate::models::TradeSymbol,
12    /// Amount of units to jettison of this good.
13    #[serde(rename = "units")]
14    pub units: u32,
15}
16
17impl JettisonRequest {
18    /// Create value with optional fields set to `None`.
19    #[allow(clippy::too_many_arguments)]
20    pub fn new(symbol: crate::models::TradeSymbol, units: u32) -> JettisonRequest {
21        JettisonRequest { symbol, units }
22    }
23}