esi_client/models/
get_corporations_corporation_id_wallets_200_ok.rs1#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct GetCorporationsCorporationIdWallets200Ok {
18 #[serde(rename = "division")]
20 division: i32,
21 #[serde(rename = "balance")]
23 balance: f64
24}
25
26impl GetCorporationsCorporationIdWallets200Ok {
27 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