ed_journals/modules/logs/content/log_event_content/under_attack_event.rs
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct UnderAttackEvent {
// TODO when is this empty?
pub target: Option<UnderAttackEventTarget>,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub enum UnderAttackEventTarget {
You,
Fighter,
Mothership,
}