pub struct PowerForecastElement {
pub duration: Duration,
pub power_values: Vec<PowerForecastValue>,
}Expand description
One time slice of a PowerForecast.
Fields§
§duration: DurationHow long this slice lasts.
power_values: Vec<PowerForecastValue>The expected powers, at most one per commodity quantity.
Trait Implementations§
Source§impl Clone for PowerForecastElement
impl Clone for PowerForecastElement
Source§fn clone(&self) -> PowerForecastElement
fn clone(&self) -> PowerForecastElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PowerForecastElement
impl Debug for PowerForecastElement
Source§impl<'de> Deserialize<'de> for PowerForecastElement
impl<'de> Deserialize<'de> for PowerForecastElement
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 PartialEq for PowerForecastElement
impl PartialEq for PowerForecastElement
Source§impl Serialize for PowerForecastElement
impl Serialize for PowerForecastElement
impl StructuralPartialEq for PowerForecastElement
Auto Trait Implementations§
impl Freeze for PowerForecastElement
impl RefUnwindSafe for PowerForecastElement
impl Send for PowerForecastElement
impl Sync for PowerForecastElement
impl Unpin for PowerForecastElement
impl UnsafeUnpin for PowerForecastElement
impl UnwindSafe for PowerForecastElement
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