esi_client/models/
get_corporations_corporation_id_wallets_200_ok.rs

1/* 
2 * EVE Swagger Interface
3 *
4 * An OpenAPI for EVE Online
5 *
6 * OpenAPI spec version: 0.8.6
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// GetCorporationsCorporationIdWallets200Ok : 200 ok object
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct GetCorporationsCorporationIdWallets200Ok {
18  /// division integer
19  #[serde(rename = "division")]
20  division: i32,
21  /// balance number
22  #[serde(rename = "balance")]
23  balance: f64
24}
25
26impl GetCorporationsCorporationIdWallets200Ok {
27  /// 200 ok object
28  pub fn new(division: i32, balance: f64) -> GetCorporationsCorporationIdWallets200Ok {
29    GetCorporationsCorporationIdWallets200Ok {
30      division: division,
31      balance: balance
32    }
33  }
34
35  pub fn set_division(&mut self, division: i32) {
36    self.division = division;
37  }
38
39  pub fn with_division(mut self, division: i32) -> GetCorporationsCorporationIdWallets200Ok {
40    self.division = division;
41    self
42  }
43
44  pub fn division(&self) -> &i32 {
45    &self.division
46  }
47
48
49  pub fn set_balance(&mut self, balance: f64) {
50    self.balance = balance;
51  }
52
53  pub fn with_balance(mut self, balance: f64) -> GetCorporationsCorporationIdWallets200Ok {
54    self.balance = balance;
55    self
56  }
57
58  pub fn balance(&self) -> &f64 {
59    &self.balance
60  }
61
62
63}
64
65
66