#[non_exhaustive]pub struct BaseRenewable {
pub duration: u32,
pub date: Date,
pub nem_time: Timestamp,
pub start_time: Timestamp,
pub end_time: Timestamp,
pub renewables: f64,
pub descriptor: RenewableDescriptor,
}
Expand description
Base renewable data structure
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.
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
descriptor: RenewableDescriptor
Renewable descriptor
Trait Implementations§
Source§impl Clone for BaseRenewable
impl Clone for BaseRenewable
Source§fn clone(&self) -> BaseRenewable
fn clone(&self) -> BaseRenewable
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 BaseRenewable
impl Debug for BaseRenewable
Source§impl<'de> Deserialize<'de> for BaseRenewable
impl<'de> Deserialize<'de> for BaseRenewable
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 BaseRenewable
impl Display for BaseRenewable
Source§impl PartialEq for BaseRenewable
impl PartialEq for BaseRenewable
impl StructuralPartialEq for BaseRenewable
Auto Trait Implementations§
impl Freeze for BaseRenewable
impl RefUnwindSafe for BaseRenewable
impl Send for BaseRenewable
impl Sync for BaseRenewable
impl Unpin for BaseRenewable
impl UnwindSafe for BaseRenewable
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