Struct tankerkoenig::models::price::PriceResponse
source · pub struct PriceResponse {
pub ok: bool,
pub license: String,
pub data: String,
pub prices: HashMap<String, StationPrices>,
}
Expand description
Response of the tankerkoenig api mapped to a rust struct with serde. The struct holds information about fuel prices for a collection of stations.
Fields§
§ok: bool
Request status
license: String
Data licence
data: String
Data licence
prices: HashMap<String, StationPrices>
Fuel prices of requested stations
Trait Implementations§
source§impl Clone for PriceResponse
impl Clone for PriceResponse
source§fn clone(&self) -> PriceResponse
fn clone(&self) -> PriceResponse
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 PriceResponse
impl Debug for PriceResponse
source§impl<'de> Deserialize<'de> for PriceResponse
impl<'de> Deserialize<'de> for PriceResponse
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 PriceResponse
impl PartialEq for PriceResponse
source§fn eq(&self, other: &PriceResponse) -> bool
fn eq(&self, other: &PriceResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PriceResponse
impl Serialize for PriceResponse
impl StructuralPartialEq for PriceResponse
Auto Trait Implementations§
impl Freeze for PriceResponse
impl RefUnwindSafe for PriceResponse
impl Send for PriceResponse
impl Sync for PriceResponse
impl Unpin for PriceResponse
impl UnwindSafe for PriceResponse
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
)