ed_journals/modules/shipyard/models/
shipyard.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

use crate::modules::shipyard::models::shipyard_entry::ShipyardEntry;

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
#[serde(rename_all = "PascalCase")]
pub struct Shipyard {
    #[serde(rename = "timestamp")]
    pub timestamp: DateTime<Utc>,

    #[serde(rename = "event")]
    pub event: String,

    #[serde(rename = "MarketID")]
    pub market_id: u64,
    pub station_name: String,
    pub star_system: String,
    pub horizons: bool,

    #[serde(rename = "AllowCobraMkIV")]
    pub allow_cobra_mk_iv: bool,
    pub price_list: Vec<ShipyardEntry>,
}