pub struct DailyPrice {
pub date: NaiveDate,
pub time: NaiveTime,
pub price: f64,
pub raw_price_amount: f64,
pub color_label: ColorLabel,
pub color: String,
pub estimated: bool,
}Expand description
One electricity-price time slot returned by Sobry.
Fields§
§date: NaiveDateDelivery date in the French timezone.
time: NaiveTimeStart of the time slot in Europe/Paris.
price: f64All-inclusive contract price in EUR/kWh, using the requested tax mode.
raw_price_amount: f64Raw wholesale spot price in EUR/kWh, excluding tax.
color_label: ColorLabelPrice category relative to the regulated tariff.
color: StringHexadecimal display color corresponding to color_label.
estimated: boolWhether this point is a forecast rather than published day-ahead data.
Trait Implementations§
Source§impl Clone for DailyPrice
impl Clone for DailyPrice
Source§impl Debug for DailyPrice
impl Debug for DailyPrice
Source§impl<'de> Deserialize<'de> for DailyPrice
impl<'de> Deserialize<'de> for DailyPrice
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 DailyPrice
impl PartialEq for DailyPrice
impl StructuralPartialEq for DailyPrice
Auto Trait Implementations§
impl Freeze for DailyPrice
impl RefUnwindSafe for DailyPrice
impl Send for DailyPrice
impl Sync for DailyPrice
impl Unpin for DailyPrice
impl UnsafeUnpin for DailyPrice
impl UnwindSafe for DailyPrice
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