Struct tankerkoenig::models::station::NearStation
source · pub struct NearStation {}
Expand description
Information of a fuel station in the area returned by the AreaNearResponse.
Fields§
§id: String
Station id
name: String
Name of the station
brand: Option<String>
Brand of the station (e.g. JET)
street: String
Street where the station is located
house_number: Option<String>
Street number
post_code: i64
Local post code
place: String
Area of the station
lat: f64
Latitude (geolocation)
lng: f64
Longitude (geolocation)
dist: f64
Distance from search point
diesel: Option<f64>
Diesel price
e5: Option<f64>
E5 price
e10: Option<f64>
E10 price
is_open: bool
Open or Closed
Trait Implementations§
source§impl Clone for NearStation
impl Clone for NearStation
source§fn clone(&self) -> NearStation
fn clone(&self) -> NearStation
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 NearStation
impl Debug for NearStation
source§impl<'de> Deserialize<'de> for NearStation
impl<'de> Deserialize<'de> for NearStation
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 PartialEq for NearStation
impl PartialEq for NearStation
source§fn eq(&self, other: &NearStation) -> bool
fn eq(&self, other: &NearStation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NearStation
impl PartialOrd for NearStation
source§fn partial_cmp(&self, other: &NearStation) -> Option<Ordering>
fn partial_cmp(&self, other: &NearStation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for NearStation
impl Serialize for NearStation
impl StructuralPartialEq for NearStation
Auto Trait Implementations§
impl Freeze for NearStation
impl RefUnwindSafe for NearStation
impl Send for NearStation
impl Sync for NearStation
impl Unpin for NearStation
impl UnwindSafe for NearStation
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)