esi_client/models/
get_universe_structures_structure_id_position.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/// GetUniverseStructuresStructureIdPosition : Coordinates of the structure in Cartesian space relative to the Sun, in metres. 
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct GetUniverseStructuresStructureIdPosition {
18  /// x number
19  #[serde(rename = "x")]
20  x: f64,
21  /// y number
22  #[serde(rename = "y")]
23  y: f64,
24  /// z number
25  #[serde(rename = "z")]
26  z: f64
27}
28
29impl GetUniverseStructuresStructureIdPosition {
30  /// Coordinates of the structure in Cartesian space relative to the Sun, in metres. 
31  pub fn new(x: f64, y: f64, z: f64) -> GetUniverseStructuresStructureIdPosition {
32    GetUniverseStructuresStructureIdPosition {
33      x: x,
34      y: y,
35      z: z
36    }
37  }
38
39  pub fn set_x(&mut self, x: f64) {
40    self.x = x;
41  }
42
43  pub fn with_x(mut self, x: f64) -> GetUniverseStructuresStructureIdPosition {
44    self.x = x;
45    self
46  }
47
48  pub fn x(&self) -> &f64 {
49    &self.x
50  }
51
52
53  pub fn set_y(&mut self, y: f64) {
54    self.y = y;
55  }
56
57  pub fn with_y(mut self, y: f64) -> GetUniverseStructuresStructureIdPosition {
58    self.y = y;
59    self
60  }
61
62  pub fn y(&self) -> &f64 {
63    &self.y
64  }
65
66
67  pub fn set_z(&mut self, z: f64) {
68    self.z = z;
69  }
70
71  pub fn with_z(mut self, z: f64) -> GetUniverseStructuresStructureIdPosition {
72    self.z = z;
73    self
74  }
75
76  pub fn z(&self) -> &f64 {
77    &self.z
78  }
79
80
81}
82
83
84