Struct frankenstein::objects::Location
source · pub struct Location {
pub longitude: f64,
pub latitude: f64,
pub horizontal_accuracy: Option<f64>,
pub live_period: Option<u32>,
pub heading: Option<u16>,
pub proximity_alert_radius: Option<u32>,
}
Fields§
§longitude: f64
§latitude: f64
§horizontal_accuracy: Option<f64>
§live_period: Option<u32>
§heading: Option<u16>
§proximity_alert_radius: Option<u32>
Implementations§
source§impl Location
impl Location
sourcepub fn builder() -> LocationBuilder<((), (), (), (), (), ())>
pub fn builder() -> LocationBuilder<((), (), (), (), (), ())>
Create a builder for building Location
.
On the builder, call .longitude(...)
, .latitude(...)
, .horizontal_accuracy(...)
(optional), .live_period(...)
(optional), .heading(...)
(optional), .proximity_alert_radius(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Location
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Location
impl PartialEq for Location
impl Copy for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more