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