nominal_api/conjure/objects/scout/compute/api/
lat_long_point.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 conjure_object::private::DeriveWith,
7 Copy
8)]
9#[serde(crate = "conjure_object::serde")]
10#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
11#[conjure_object::private::staged_builder::staged_builder]
12#[builder(crate = conjure_object::private::staged_builder, update, inline)]
13pub struct LatLongPoint {
14 #[serde(rename = "latitude")]
15 #[derive_with(with = conjure_object::private::DoubleWrapper)]
16 latitude: f64,
17 #[serde(rename = "longitude")]
18 #[derive_with(with = conjure_object::private::DoubleWrapper)]
19 longitude: f64,
20}
21impl LatLongPoint {
22 #[inline]
24 pub fn new(latitude: f64, longitude: f64) -> Self {
25 Self::builder().latitude(latitude).longitude(longitude).build()
26 }
27 #[inline]
28 pub fn latitude(&self) -> f64 {
29 self.latitude
30 }
31 #[inline]
32 pub fn longitude(&self) -> f64 {
33 self.longitude
34 }
35}