Struct tankerkoenig::models::station::AreaStationFuel
source · pub struct AreaStationFuel {
pub id: String,
pub name: String,
pub brand: Option<String>,
pub street: String,
pub house_number: Option<String>,
pub post_code: i64,
pub place: String,
pub lat: f64,
pub lng: f64,
pub dist: f64,
pub price: Option<f64>,
pub is_open: bool,
}
Expand description
Information about the fuel of a station in the area, returned by the AreaFuelResponse
Fields§
§id: String
Station id
name: String
Station name
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 of the station
price: Option<f64>
Price of the requested fuel
is_open: bool
Open or closed
Trait Implementations§
source§impl Clone for AreaStationFuel
impl Clone for AreaStationFuel
source§fn clone(&self) -> AreaStationFuel
fn clone(&self) -> AreaStationFuel
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 AreaStationFuel
impl Debug for AreaStationFuel
source§impl<'de> Deserialize<'de> for AreaStationFuel
impl<'de> Deserialize<'de> for AreaStationFuel
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 AreaStationFuel
impl PartialEq for AreaStationFuel
source§fn eq(&self, other: &AreaStationFuel) -> bool
fn eq(&self, other: &AreaStationFuel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AreaStationFuel
impl PartialOrd for AreaStationFuel
source§fn partial_cmp(&self, other: &AreaStationFuel) -> Option<Ordering>
fn partial_cmp(&self, other: &AreaStationFuel) -> 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 AreaStationFuel
impl Serialize for AreaStationFuel
impl StructuralPartialEq for AreaStationFuel
Auto Trait Implementations§
impl Freeze for AreaStationFuel
impl RefUnwindSafe for AreaStationFuel
impl Send for AreaStationFuel
impl Sync for AreaStationFuel
impl Unpin for AreaStationFuel
impl UnwindSafe for AreaStationFuel
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
)