#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.duration: u32Length of the interval in minutes.
spot_per_kwh: f64NEM 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: f64Number of cents you will pay per kilowatt-hour (c/kWh) - includes GST.
date: DateDate 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: TimestampThe interval’s NEM time.
This represents the time at the end of the interval UTC+10.
start_time: TimestampStart time of the interval in UTC.
end_time: TimestampEnd time of the interval in UTC.
renewables: f64Percentage of renewables in the grid.
channel_type: ChannelTypeChannel type.
tariff_information: Option<TariffInformation>Tariff information.
spike_status: SpikeStatusSpike status.
descriptor: PriceDescriptorPrice descriptor.
Trait Implementations§
Source§impl Clone for BaseInterval
impl Clone for BaseInterval
Source§fn clone(&self) -> BaseInterval
fn clone(&self) -> BaseInterval
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.