pub struct Coordinates {
pub latitude: f64,
pub longitude: f64,
pub accuracy: f64,
pub altitude_accuracy: Option<f64>,
pub altitude: Option<f64>,
pub speed: Option<f64>,
pub heading: Option<f64>,
}
Fields§
§latitude: f64
Latitude in decimal degrees.
longitude: f64
Longitude in decimal degrees.
accuracy: f64
Accuracy level of the latitude and longitude coordinates in meters.
altitude_accuracy: Option<f64>
Accuracy level of the altitude coordinate in meters, if available. Available on all iOS versions and on Android 8 and above.
altitude: Option<f64>
The altitude the user is at, if available.
speed: Option<f64>
§heading: Option<f64>
The heading the user is facing, if available.
Trait Implementations§
Source§impl Clone for Coordinates
impl Clone for Coordinates
Source§fn clone(&self) -> Coordinates
fn clone(&self) -> Coordinates
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Coordinates
impl Debug for Coordinates
Source§impl Default for Coordinates
impl Default for Coordinates
Source§fn default() -> Coordinates
fn default() -> Coordinates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Coordinates
impl<'de> Deserialize<'de> for Coordinates
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 Coordinates
impl RefUnwindSafe for Coordinates
impl Send for Coordinates
impl Sync for Coordinates
impl Unpin for Coordinates
impl UnwindSafe for Coordinates
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