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: StringStation name.
latitude: f32Latitude coordinate of the station.
longitude: f32Longitude coordinate of the station.
type: StringStation type. Either reference or subordinate station.
distance: f32Distance 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<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 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