#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
conjure_object::private::DeriveWith,
Copy
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct LatLongPoint {
#[serde(rename = "latitude")]
#[derive_with(with = conjure_object::private::DoubleWrapper)]
latitude: f64,
#[serde(rename = "longitude")]
#[derive_with(with = conjure_object::private::DoubleWrapper)]
longitude: f64,
}
impl LatLongPoint {
#[inline]
pub fn new(latitude: f64, longitude: f64) -> Self {
Self::builder().latitude(latitude).longitude(longitude).build()
}
#[inline]
pub fn latitude(&self) -> f64 {
self.latitude
}
#[inline]
pub fn longitude(&self) -> f64 {
self.longitude
}
}