pub struct StationInfo {
pub name: String,
pub latitude: f32,
pub longitude: f32,
pub type: String,
pub distance: f32,
}
Expand description
Information about a station.
Fields§
§name: String
Station name.
latitude: f32
Latitude coordinate of the station.
longitude: f32
Longitude coordinate of the station.
type: String
Station type. Either reference or subordinate station.
distance: f32
Distance between request place and this station.
Trait Implementations§
Source§impl Debug for StationInfo
impl Debug for StationInfo
Source§impl<'de> Deserialize<'de> for StationInfo
impl<'de> Deserialize<'de> for StationInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StationInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StationInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StationInfo
impl RefUnwindSafe for StationInfo
impl Send for StationInfo
impl Sync for StationInfo
impl Unpin for StationInfo
impl UnwindSafe for StationInfo
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