Skip to main content

qeztorncodegen/models/
faction_chain_report_attacker.rs

1/*
2 * Torn API
3 *
4 *   * The development of Torn's API v2 is still ongoing.  * If selections remain unaltered, they will default to the API v1 version.  * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.  * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.
5 *
6 * The version of the OpenAPI document: 2.0
7 * 
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 FactionChainReportAttacker {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i32>,
18    #[serde(rename = "respect", skip_serializing_if = "Option::is_none")]
19    pub respect: Option<Box<models::FactionChainReportAttackerRespect>>,
20    #[serde(rename = "attacks", skip_serializing_if = "Option::is_none")]
21    pub attacks: Option<Box<models::FactionChainReportAttackerAttacks>>,
22}
23
24impl FactionChainReportAttacker {
25    pub fn new() -> FactionChainReportAttacker {
26        FactionChainReportAttacker {
27            id: None,
28            respect: None,
29            attacks: None,
30        }
31    }
32}
33