space_traders/models/
extraction.rs

1//! Generated by: <https://openapi-generator.tech>
2//!
3//! Version of specification: `2.0.0`
4
5use serde::{Deserialize, Serialize};
6
7/// Extraction details.
8#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
9pub struct Extraction {
10    /// Symbol of the ship that executed the extraction.
11    #[serde(rename = "shipSymbol")]
12    pub ship_symbol: String,
13    #[serde(rename = "yield")]
14    pub r#yield: crate::models::ExtractionYield,
15}
16
17impl Extraction {
18    /// Create value with optional fields set to `None`.
19    #[allow(clippy::too_many_arguments)]
20    pub fn new(ship_symbol: String, r#yield: crate::models::ExtractionYield) -> Extraction {
21        Extraction {
22            ship_symbol,
23            r#yield,
24        }
25    }
26}