Skip to main content

esi_openapi/groups/
incursions.rs

1use crate::prelude::*;
2
3/// Endpoints for Incursions
4pub struct IncursionsGroup<'a> {
5    pub(crate) esi: &'a Esi,
6}
7
8#[derive(Debug, Deserialize)]
9#[allow(missing_docs)]
10pub struct Incursion {
11    pub constellation_id: i32,
12    pub faction_id: i32,
13    pub has_boss: bool,
14    pub infested_solar_systems: Vec<u32>,
15    pub influence: f64,
16    pub staging_solar_system_id: i32,
17    pub state: String,
18    #[serde(rename = "type")]
19    pub incursion_type: String,
20}
21
22impl IncursionsGroup<'_> {
23    api_get!(
24        /// Get the current incursions.
25        list,
26        "GetIncursions",
27        RequestType::Public,
28        Vec<Incursion>,
29    );
30}