ed_journals/modules/logs/content/log_event_content/
pay_bounties_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
//! Fired when the player has paid of their bounties.

use serde::{Deserialize, Serialize};

/// Fired when the player has paid of their bounties.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct PayBountiesEvent {
    /// The number of credits paid.
    pub amount: u64,

    /// The percentage the broker took.
    pub broker_percentage: Option<f32>,

    /// Whether all fines have been paid in one go.
    #[serde(default)]
    pub all_fines: bool,

    /// The faction the bounties were paid at.
    pub faction: Option<String>,

    /// The localized name of the faction the bounties were paid at.
    #[serde(rename = "Faction_Localised")]
    pub faction_localized: Option<String>,

    /// The id current active ship.
    #[serde(rename = "ShipID")]
    pub ship_id: u64,
}