ed_journals/modules/logs/content/log_event_content/
crew_assign_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
//! Fired when assigning crew.

use serde::{Deserialize, Serialize};

/// Fired when assigning crew.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct CrewAssignEvent {
    /// The name of the crew that was assigned.
    pub name: String,

    /// The id of the crew member that was assigned a new role.
    #[serde(rename = "CrewID")]
    pub crew_id: u64,

    /// The new role of the crew member.
    pub role: CrewAssignEventRole,
}

/// The role of the crew member.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub enum CrewAssignEventRole {
    /// The crew member has been set to active.
    Active,
}