pub struct Geolocation {
pub latitude: f64,
pub longitude: f64,
pub accuracy: Option<f64>,
}
Fields§
§latitude: f64
Latitude between -90 and 90.
longitude: f64
Longitude between -180 and 180.
accuracy: Option<f64>
Non-negative accuracy value. Defaults to 0
.
Trait Implementations§
Source§impl Clone for Geolocation
impl Clone for Geolocation
Source§fn clone(&self) -> Geolocation
fn clone(&self) -> Geolocation
Returns a copy of the value. Read more
1.0.0 · 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 Geolocation
impl Debug for Geolocation
Source§impl<'de> Deserialize<'de> for Geolocation
impl<'de> Deserialize<'de> for Geolocation
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
Auto Trait Implementations§
impl Freeze for Geolocation
impl RefUnwindSafe for Geolocation
impl Send for Geolocation
impl Sync for Geolocation
impl Unpin for Geolocation
impl UnwindSafe for Geolocation
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