warframe_client/models/
persistent_enemies_inner.rs

1/*
2 * WarframeStat.us API
3 *
4 * Simple API for data from the game Warframe. [Parser Docs](https://wfcd.github.io/warframe-worldstate-parser/) [Items Types](https://github.com/WFCD/warframe-items/blob/master/index.d.ts) 
5 *
6 * The version of the OpenAPI document: 2.0.8
7 * Contact: tobiah@protonmail.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PersistentEnemiesInner {
16    /// Location tag for Acolyte
17    #[serde(rename = "locationTag", skip_serializing_if = "Option::is_none")]
18    pub location_tag: Option<String>,
19    /// Which acolyte it is
20    #[serde(rename = "agentType", skip_serializing_if = "Option::is_none")]
21    pub agent_type: Option<String>,
22    /// Enemy level
23    #[serde(rename = "rank", skip_serializing_if = "Option::is_none")]
24    pub rank: Option<f64>,
25    /// Enemy's remaining health
26    #[serde(rename = "healthPercent", skip_serializing_if = "Option::is_none")]
27    pub health_percent: Option<f64>,
28    /// The percent damage that the enemy takes when it's defeated
29    #[serde(rename = "fleeDamage", skip_serializing_if = "Option::is_none")]
30    pub flee_damage: Option<f64>,
31    /// The region in which the enemy is located
32    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
33    pub region: Option<String>,
34    /// The time at which the enemy was last discovered
35    #[serde(rename = "lastDiscoveredTime", skip_serializing_if = "Option::is_none")]
36    pub last_discovered_time: Option<String>,
37    /// Node at which the enemy was last discovered
38    #[serde(rename = "lastDiscoveredAt", skip_serializing_if = "Option::is_none")]
39    pub last_discovered_at: Option<String>,
40    /// Whether the enemy is currently discovered
41    #[serde(rename = "isDiscovered", skip_serializing_if = "Option::is_none")]
42    pub is_discovered: Option<bool>,
43    /// Whether the enemy is using 'ticketing'. Unknown usage.
44    #[serde(rename = "isUsingTicketing", skip_serializing_if = "Option::is_none")]
45    pub is_using_ticketing: Option<bool>,
46    /// faux-id incorporating the actual description and Whether the enemy is discovered.
47    #[serde(rename = "pid", skip_serializing_if = "Option::is_none")]
48    pub pid: Option<String>,
49}
50
51impl PersistentEnemiesInner {
52    pub fn new() -> PersistentEnemiesInner {
53        PersistentEnemiesInner {
54            location_tag: None,
55            agent_type: None,
56            rank: None,
57            health_percent: None,
58            flee_damage: None,
59            region: None,
60            last_discovered_time: None,
61            last_discovered_at: None,
62            is_discovered: None,
63            is_using_ticketing: None,
64            pid: None,
65        }
66    }
67}
68