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
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
sourcefn 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
impl Copy for Location
impl StructuralPartialEq for Location
Auto Trait Implementations
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more