Struct amber_client::rest_client::PriceData
source · pub struct PriceData {Show 14 fields
pub interval_type: String,
pub date: Timestamp,
pub duration: u8,
pub start_time: Timestamp,
pub end_time: Timestamp,
pub nem_time: Timestamp,
pub per_kwh: f32,
pub renewables: f32,
pub spot_per_kwh: f32,
pub channel_type: String,
pub spike_status: String,
pub tariff_information: TariffInformation,
pub descriptor: String,
pub estimate: Option<bool>,
}Expand description
Struct type that matches the resulting data from the Amber “/prices” REST endpoint.
Fields§
§interval_type: String§date: Timestamp§duration: u8§start_time: Timestamp§end_time: Timestamp§nem_time: Timestamp§per_kwh: f32§renewables: f32§spot_per_kwh: f32§channel_type: String§spike_status: String§tariff_information: TariffInformation§descriptor: String§estimate: Option<bool>Trait Implementations§
source§impl<'de> Deserialize<'de> for PriceData
impl<'de> Deserialize<'de> for PriceData
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
Auto Trait Implementations§
impl RefUnwindSafe for PriceData
impl Send for PriceData
impl Sync for PriceData
impl Unpin for PriceData
impl UnwindSafe for PriceData
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