ed_journals/modules/logs/content/log_event_content/
file_header_event.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
25
26
27
//! Always the first event that is fired for a log file.

use serde::{Deserialize, Serialize};

/// Always the first event that is fired for a log file. In the case where a log file is
/// [Continued](ContinuedEvent), the continued log file gets its own file header with a new part
/// number.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct FileHeaderEvent {
    /// The part number for the log file. When just starting the game this will always be 1 and
    /// this is incremented with each continued log.
    pub part: u8,

    /// The language the player has configured.
    pub language: String,

    /// Whether the player has Odyssey enabled.
    #[serde(default, rename = "Odyssey")]
    pub odyssey: bool,

    /// The version of the game.
    #[serde(rename = "gameversion")]
    pub game_version: String,

    /// The internal build number for the version of the game.
    pub build: String,
}