Skip to main content

nominal_api/conjure/objects/scout/compute/api/
point3d.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    conjure_object::private::DeriveWith
7)]
8#[serde(crate = "conjure_object::serde")]
9#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[conjure_object::private::staged_builder::staged_builder]
11#[builder(crate = conjure_object::private::staged_builder, update, inline)]
12pub struct Point3d {
13    #[serde(rename = "x")]
14    #[derive_with(with = conjure_object::private::DoubleWrapper)]
15    x: f64,
16    #[serde(rename = "y")]
17    #[derive_with(with = conjure_object::private::DoubleWrapper)]
18    y: f64,
19    #[serde(rename = "z")]
20    #[derive_with(with = conjure_object::private::DoubleWrapper)]
21    z: f64,
22    #[builder(
23        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
24    )]
25    #[serde(rename = "timestamp")]
26    timestamp: Box<super::super::super::super::api::Timestamp>,
27}
28impl Point3d {
29    #[inline]
30    pub fn x(&self) -> f64 {
31        self.x
32    }
33    #[inline]
34    pub fn y(&self) -> f64 {
35        self.y
36    }
37    #[inline]
38    pub fn z(&self) -> f64 {
39        self.z
40    }
41    #[inline]
42    pub fn timestamp(&self) -> &super::super::super::super::api::Timestamp {
43        &*self.timestamp
44    }
45}