Struct amber_client::rest_client::UsageData
source · pub struct UsageData {Show 17 fields
pub price_type: String,
pub duration: u8,
pub date: Timestamp,
pub end_time: Timestamp,
pub quality: String,
pub kwh: f32,
pub nem_time: Timestamp,
pub per_kwh: f32,
pub channel_type: String,
pub channel_identifier: String,
pub cost: f32,
pub renewables: f32,
pub spot_per_kwh: f32,
pub start_time: Timestamp,
pub spike_status: String,
pub tariff_information: TariffInformation,
pub descriptor: String,
}Expand description
Struct type that matches the resulting data from the Amber “/usage” REST endpoint.
Fields§
§price_type: String§duration: u8§date: Timestamp§end_time: Timestamp§quality: String§kwh: f32§nem_time: Timestamp§per_kwh: f32§channel_type: String§channel_identifier: String§cost: f32§renewables: f32§spot_per_kwh: f32§start_time: Timestamp§spike_status: String§tariff_information: TariffInformation§descriptor: StringTrait Implementations§
source§impl<'de> Deserialize<'de> for UsageData
impl<'de> Deserialize<'de> for UsageData
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 UsageData
impl Send for UsageData
impl Sync for UsageData
impl Unpin for UsageData
impl UnwindSafe for UsageData
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