pub struct GeolocationProfile {
pub latitude: f64,
pub longitude: f64,
pub accuracy: Option<f64>,
}Expand description
The position the geolocation API reports.
Fields§
§latitude: f64Latitude in degrees, between -90 and 90.
longitude: f64Longitude in degrees, between -180 and 180.
accuracy: Option<f64>Accuracy radius in metres.
Trait Implementations§
Source§impl Clone for GeolocationProfile
impl Clone for GeolocationProfile
Source§fn clone(&self) -> GeolocationProfile
fn clone(&self) -> GeolocationProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeolocationProfile
impl Debug for GeolocationProfile
Source§impl<'de> Deserialize<'de> for GeolocationProfile
impl<'de> Deserialize<'de> for GeolocationProfile
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 GeolocationProfile
impl PartialEq for GeolocationProfile
Source§impl Serialize for GeolocationProfile
impl Serialize for GeolocationProfile
impl StructuralPartialEq for GeolocationProfile
Auto Trait Implementations§
impl Freeze for GeolocationProfile
impl RefUnwindSafe for GeolocationProfile
impl Send for GeolocationProfile
impl Sync for GeolocationProfile
impl Unpin for GeolocationProfile
impl UnsafeUnpin for GeolocationProfile
impl UnwindSafe for GeolocationProfile
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