nominal_api/conjure/objects/scout/compute/api/
cartesian3d_unit_result.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct Cartesian3dUnitResult {
16 #[builder(custom(type = super::UnitResult, convert = Box::new))]
17 #[serde(rename = "x")]
18 x: Box<super::UnitResult>,
19 #[builder(custom(type = super::UnitResult, convert = Box::new))]
20 #[serde(rename = "y")]
21 y: Box<super::UnitResult>,
22 #[builder(custom(type = super::UnitResult, convert = Box::new))]
23 #[serde(rename = "z")]
24 z: Box<super::UnitResult>,
25}
26impl Cartesian3dUnitResult {
27 #[inline]
29 pub fn new(
30 x: super::UnitResult,
31 y: super::UnitResult,
32 z: super::UnitResult,
33 ) -> Self {
34 Self::builder().x(x).y(y).z(z).build()
35 }
36 #[inline]
37 pub fn x(&self) -> &super::UnitResult {
38 &*self.x
39 }
40 #[inline]
41 pub fn y(&self) -> &super::UnitResult {
42 &*self.y
43 }
44 #[inline]
45 pub fn z(&self) -> &super::UnitResult {
46 &*self.z
47 }
48}