#[non_exhaustive]pub struct BaseInterval {
pub duration: u32,
pub spot_per_kwh: f64,
pub per_kwh: f64,
pub date: Date,
pub nem_time: Timestamp,
pub start_time: Timestamp,
pub end_time: Timestamp,
pub renewables: f64,
pub channel_type: ChannelType,
pub tariff_information: Option<TariffInformation>,
pub spike_status: SpikeStatus,
pub descriptor: PriceDescriptor,
}
Expand description
Base interval structure containing common fields
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.duration: u32
Length of the interval in minutes.
spot_per_kwh: f64
NEM spot price (c/kWh).
This is the price generators get paid to generate electricity, and what drives the variable component of your perKwh price - includes GST
per_kwh: f64
Number of cents you will pay per kilowatt-hour (c/kWh) - includes GST
date: Date
Date the interval belongs to (in NEM time).
This may be different to the date component of nemTime, as the last interval of the day ends at 12:00 the following day.
nem_time: Timestamp
The interval’s NEM time.
This represents the time at the end of the interval UTC+10.
start_time: Timestamp
Start time of the interval in UTC.
end_time: Timestamp
End time of the interval in UTC.
renewables: f64
Percentage of renewables in the grid
channel_type: ChannelType
Channel type
tariff_information: Option<TariffInformation>
Tariff information
spike_status: SpikeStatus
Spike status
descriptor: PriceDescriptor
Price descriptor
Trait Implementations§
Source§impl Clone for BaseInterval
impl Clone for BaseInterval
Source§fn clone(&self) -> BaseInterval
fn clone(&self) -> BaseInterval
Returns a duplicate 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 BaseInterval
impl Debug for BaseInterval
Source§impl<'de> Deserialize<'de> for BaseInterval
impl<'de> Deserialize<'de> for BaseInterval
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 Display for BaseInterval
impl Display for BaseInterval
Source§impl PartialEq for BaseInterval
impl PartialEq for BaseInterval
impl StructuralPartialEq for BaseInterval
Auto Trait Implementations§
impl Freeze for BaseInterval
impl RefUnwindSafe for BaseInterval
impl Send for BaseInterval
impl Sync for BaseInterval
impl Unpin for BaseInterval
impl UnwindSafe for BaseInterval
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