Struct tankerkoenig::models::station::DetailStation
source · pub struct DetailStation {Show 17 fields
pub id: String,
pub name: String,
pub brand: String,
pub street: String,
pub house_number: Option<String>,
pub post_code: i64,
pub place: String,
pub whole_day: bool,
pub is_open: bool,
pub diesel: Option<f64>,
pub e5: Option<f64>,
pub e10: Option<f64>,
pub lat: f64,
pub lng: f64,
pub state: Option<String>,
pub overrides: Vec<String>,
pub opening_times: Vec<OpeningTimes>,
}
Expand description
Detailed information of a fuel station, returned by the DetailsResponse
Fields§
§id: String
Station id
name: String
Name of the station
brand: 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
whole_day: bool
Open 24 hours
is_open: bool
Currently open or closed
diesel: Option<f64>
Diesel price
e5: Option<f64>
E5 price
e10: Option<f64>
E10 price
lat: f64
Latitude (geolocation)
lng: f64
Longitude (geolocation)
state: Option<String>
State of the station
overrides: Vec<String>
Additional information
opening_times: Vec<OpeningTimes>
Opening times of the station
Trait Implementations§
source§impl Clone for DetailStation
impl Clone for DetailStation
source§fn clone(&self) -> DetailStation
fn clone(&self) -> DetailStation
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 DetailStation
impl Debug for DetailStation
source§impl<'de> Deserialize<'de> for DetailStation
impl<'de> Deserialize<'de> for DetailStation
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 DetailStation
impl PartialEq for DetailStation
source§fn eq(&self, other: &DetailStation) -> bool
fn eq(&self, other: &DetailStation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DetailStation
impl PartialOrd for DetailStation
source§fn partial_cmp(&self, other: &DetailStation) -> Option<Ordering>
fn partial_cmp(&self, other: &DetailStation) -> 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 DetailStation
impl Serialize for DetailStation
impl StructuralPartialEq for DetailStation
Auto Trait Implementations§
impl Freeze for DetailStation
impl RefUnwindSafe for DetailStation
impl Send for DetailStation
impl Sync for DetailStation
impl Unpin for DetailStation
impl UnwindSafe for DetailStation
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
)