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: f64Latitude in decimal degrees.
longitude: f64Longitude in decimal degrees.
accuracy: f64Accuracy 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 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 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
source§impl NamedType for Coordinates
impl NamedType for Coordinates
fn sid() -> SpectaID
source§fn named_data_type(
type_map: &mut TypeMap,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeMap, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
source§fn definition_named_data_type(type_map: &mut TypeMap) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeMap) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
source§impl Serialize for Coordinates
impl Serialize for Coordinates
source§impl Type for Coordinates
impl Type for Coordinates
source§fn inline(type_map: &mut TypeMap, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeMap, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
source§fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Flatten for Coordinates
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)