ed_journals/modules/logs/content/log_event_content/
resurrect_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
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct ResurrectEvent {
    pub option: ResurrectEventOption,
    pub cost: u64,
    pub bankrupt: bool,
}

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub enum ResurrectEventOption {
    #[serde(rename = "recover")]
    Recover,

    #[serde(rename = "handin")]
    HandIn,

    #[serde(rename = "rebuy")]
    Rebuy,

    #[serde(rename = "rejoin")]
    Rejoin,

    #[serde(rename = "escape")]
    Escape,
}