ed_journals/modules/logs/content/log_event_content/
data_scanned_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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Fired when scanning data while in a ship or SRV.

use serde::{Deserialize, Serialize};

/// Fired when scanning data while in a ship or SRV.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct DataScannedEvent {
    /// The type of datapoint scanned.
    #[serde(rename = "Type")]
    pub kind: DataScannedEventType,
}

/// The type of datapoint scanned.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub enum DataScannedEventType {
    #[serde(rename = "$Datascan_AbandonedDataLog;")]
    AbandonedDataLog,

    #[serde(rename = "$Datascan_DataLink;")]
    DataLink,

    #[serde(rename = "$Datascan_DataPoint;")]
    DataPoint,

    #[serde(rename = "$Datascan_ListeningPost;")]
    ListeningPost,

    #[serde(rename = "$Datascan_ShipUplink;")]
    ShipUplink,

    #[serde(rename = "$Datascan_WreckedShip;")]
    WreckedShip,

    #[serde(rename = "$Datascan_TouristBeacon;")]
    TouristBeacon,

    #[serde(rename = "$Datascan_ANCIENTCODEX;")]
    AncientCodex,

    #[serde(rename = "$Datascan_Unknown_Uplink;")]
    UnknownUplink,
}