ed_journals/modules/outfitting/models/
outfitting.rs

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

use crate::modules::outfitting::models::outfitting_entry::OutfittingEntry;

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
#[serde(rename_all = "PascalCase")]
pub struct Outfitting {
    #[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,
    pub items: Vec<OutfittingEntry>,
}