pub struct PowerForecast {
pub message_id: Id,
pub start_time: Timestamp,
pub elements: Vec<PowerForecastElement>,
}Expand description
What a resource expects to consume or produce over a period.
Fields§
§message_id: IdThis message’s identifier.
start_time: TimestampWhen the forecast starts.
elements: Vec<PowerForecastElement>The slices, in chronological order.
Implementations§
Source§impl PowerForecast
impl PowerForecast
Sourcepub fn builder() -> PowerForecastBuilder
pub fn builder() -> PowerForecastBuilder
Create an instance of PowerForecast using the builder syntax
Trait Implementations§
Source§impl Clone for PowerForecast
impl Clone for PowerForecast
Source§fn clone(&self) -> PowerForecast
fn clone(&self) -> PowerForecast
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 PowerForecast
impl Debug for PowerForecast
Source§impl<'de> Deserialize<'de> for PowerForecast
impl<'de> Deserialize<'de> for PowerForecast
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 From<PowerForecast> for Message
impl From<PowerForecast> for Message
Source§fn from(value: PowerForecast) -> Self
fn from(value: PowerForecast) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PowerForecast
impl PartialEq for PowerForecast
Source§impl Serialize for PowerForecast
impl Serialize for PowerForecast
impl StructuralPartialEq for PowerForecast
Auto Trait Implementations§
impl Freeze for PowerForecast
impl RefUnwindSafe for PowerForecast
impl Send for PowerForecast
impl Sync for PowerForecast
impl Unpin for PowerForecast
impl UnsafeUnpin for PowerForecast
impl UnwindSafe for PowerForecast
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