pub struct SystemDescription {
pub message_id: Id,
pub valid_from: Timestamp,
pub actuators: Vec<ActuatorDescription>,
pub present_demand_rate: Option<NumberRange>,
pub provides_average_demand_rate_forecast: bool,
}Expand description
Every actuator that can meet the demand.
Fields§
§message_id: IdThis message’s identifier.
valid_from: TimestampWhen this description becomes valid.
actuators: Vec<ActuatorDescription>Every actuator. At least one, at most ten.
present_demand_rate: Option<NumberRange>The demand that must be satisfied right now.
Required in v0.0.2-beta and absent in v1.0.0, where it became
PresentDemandStatus. The codec enforces whichever the negotiated profile
requires, so this is the one field whose optionality is a function of the version
.
provides_average_demand_rate_forecast: boolWhether an AverageDemandRateForecast may follow.
Implementations§
Source§impl SystemDescription
impl SystemDescription
Sourcepub fn builder() -> SystemDescriptionBuilder
pub fn builder() -> SystemDescriptionBuilder
Create an instance of SystemDescription using the builder syntax
Source§impl SystemDescription
impl SystemDescription
Sourcepub fn actuator(&self, id: &Id) -> Option<&ActuatorDescription>
pub fn actuator(&self, id: &Id) -> Option<&ActuatorDescription>
The actuator with this id, if the description has one.
Trait Implementations§
Source§impl Clone for SystemDescription
impl Clone for SystemDescription
Source§fn clone(&self) -> SystemDescription
fn clone(&self) -> SystemDescription
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 SystemDescription
impl Debug for SystemDescription
Source§impl<'de> Deserialize<'de> for SystemDescription
impl<'de> Deserialize<'de> for SystemDescription
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<SystemDescription> for Message
impl From<SystemDescription> for Message
Source§fn from(value: SystemDescription) -> Self
fn from(value: SystemDescription) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SystemDescription
impl PartialEq for SystemDescription
Source§impl Serialize for SystemDescription
impl Serialize for SystemDescription
impl StructuralPartialEq for SystemDescription
Auto Trait Implementations§
impl Freeze for SystemDescription
impl RefUnwindSafe for SystemDescription
impl Send for SystemDescription
impl Sync for SystemDescription
impl Unpin for SystemDescription
impl UnsafeUnpin for SystemDescription
impl UnwindSafe for SystemDescription
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