pub enum Value {
Minutes(u16),
Gate {
local_time: Time,
day_offset: i8,
},
PriceRange {
min: EurPerMwh,
max: EurPerMwh,
},
Step(Granularity),
Alarm(Box<AlarmDef>),
Rate {
count: u32,
window_secs: u32,
},
Seconds(u32),
}Expand description
A rule’s value.
Variants§
Minutes(u16)
A duration in minutes (market time units).
Gate
A local Berlin time on the delivery day plus an offset in days (gates, publications).
Fields
PriceRange
A price range.
Step(Granularity)
A quantity or price step with its rounding direction.
Alarm(Box<AlarmDef>)
An alarm type: the rationalised record of ISA-18.2 (priority, delays, texts).
Rate
A rate: count per window_secs (alarm philosophy).
Seconds(u32)
A duration in seconds.
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Value
impl Move for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Valuewhere
BoxRaw<AlarmDef>: UnwindSafe,
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