ed_journals/modules/logs/content/log_event_content/
redeem_voucher_event.rsuse serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct RedeemVoucherEvent {
#[serde(rename = "Type")]
pub kind: RedeemVoucherEventType,
pub amount: u64,
#[serde(default)]
pub factions: Vec<RedeemVoucherEventFaction>,
pub faction: Option<String>,
pub broker_percentage: Option<f32>,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub enum RedeemVoucherEventType {
CombatBond,
#[serde(rename = "bounty")]
Bounty,
#[serde(rename = "trade")]
Trade,
#[serde(rename = "settlement")]
Settlement,
#[serde(rename = "scannable")]
Scannable,
#[serde(rename = "codex")]
Codex,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct RedeemVoucherEventFaction {
pub faction: String,
pub amount: u64,
}