Struct tankerkoenig::models::price::StationPrices
source · pub struct StationPrices {
pub status: String,
pub e5: Option<f64>,
pub e10: Option<f64>,
pub diesel: Option<f64>,
}
Expand description
Fuel prices of a station. If one field is Noone
the station doesn’t offer the
fuel or it is currently not possibleto fetch the price.
Fields§
§status: String
Station open or closed
e5: Option<f64>
Price for E5
e10: Option<f64>
Price for E10
diesel: Option<f64>
Price for diesel
Trait Implementations§
source§impl Clone for StationPrices
impl Clone for StationPrices
source§fn clone(&self) -> StationPrices
fn clone(&self) -> StationPrices
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 StationPrices
impl Debug for StationPrices
source§impl<'de> Deserialize<'de> for StationPrices
impl<'de> Deserialize<'de> for StationPrices
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 StationPrices
impl PartialEq for StationPrices
source§fn eq(&self, other: &StationPrices) -> bool
fn eq(&self, other: &StationPrices) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StationPrices
impl PartialOrd for StationPrices
source§fn partial_cmp(&self, other: &StationPrices) -> Option<Ordering>
fn partial_cmp(&self, other: &StationPrices) -> 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 StationPrices
impl Serialize for StationPrices
impl StructuralPartialEq for StationPrices
Auto Trait Implementations§
impl Freeze for StationPrices
impl RefUnwindSafe for StationPrices
impl Send for StationPrices
impl Sync for StationPrices
impl Unpin for StationPrices
impl UnwindSafe for StationPrices
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
)