Struct location_history::Location
source · pub struct Location {
pub timestamp: NaiveDateTime,
pub latitude: f32,
pub longitude: f32,
pub accuracy: i32,
pub altitude: Option<i32>,
}
Expand description
Location sample parsed from LocationHistory.json
Fields§
§timestamp: NaiveDateTime
timestamp this location was sampled at, converted from milliseconds
latitude: f32
latitude, converted from lat E7
longitude: f32
longitude, converted from long E7
accuracy: i32
accuracy of location sample in meters
altitude: Option<i32>
altitude in meters, if available
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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