pub struct Location {
pub altitude: Option<f64>,
pub latitude: f64,
pub longitude: f64,
pub relevant_text: Option<String>,
}Expand description
The geographic coordinates of the transit departure, suitable to be shown on a map. If possible, precise locations are more useful to travelers, such as the specific location of the gate at an airport.
Information about a location.
The geographic coordinates of the transit destination, suitable to be shown on a map.
A brief description of the destination location.
The geographic coordinates of the venue.
Fields§
§altitude: Option<f64>Altitude, in meters, of the location.
latitude: f64Latitude, in degrees, of the location.
longitude: f64Longitude, in degrees, of the location.
relevant_text: Option<String>Text displayed on the lock screen when the pass is currently relevant.
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
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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