pub struct OperationMode {
pub id: Id,
pub diagnostic_label: Option<String>,
pub power_ranges: Vec<PowerRange>,
pub supply_range: NumberRange,
pub running_costs: Option<NumberRange>,
pub abnormal_condition_only: bool,
}Expand description
One state of an actuator’s state machine.
Fields§
§id: IdUnique within the actuator description that contains it.
The wire spells this field with a capital I — the only field in the whole of
S2 JSON that does (erratum E4).
diagnostic_label: Option<String>Human-readable, for debugging only.
power_ranges: Vec<PowerRange>The power in this mode: start at factor 0, end at factor 1.
supply_range: NumberRangeThe supply rate this mode can deliver, which the CEM matches against the demand. Start at factor 0, end at factor 1.
running_costs: Option<NumberRange>Cost per second of running in this mode, excluding the commodity. The range expresses uncertainty, not the factor.
abnormal_condition_only: boolWhether this mode may only be used during an abnormal condition.
Implementations§
Source§impl OperationMode
impl OperationMode
Sourcepub fn builder() -> OperationModeBuilder
pub fn builder() -> OperationModeBuilder
Create an instance of OperationMode using the builder syntax
Trait Implementations§
Source§impl Clone for OperationMode
impl Clone for OperationMode
Source§impl Debug for OperationMode
impl Debug for OperationMode
Source§impl<'de> Deserialize<'de> for OperationMode
impl<'de> Deserialize<'de> for OperationMode
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 OperationMode
impl PartialEq for OperationMode
Source§impl Serialize for OperationMode
impl Serialize for OperationMode
impl StructuralPartialEq for OperationMode
Auto Trait Implementations§
impl Forget for OperationMode
impl Freeze for OperationMode
impl Move for OperationMode
impl RefUnwindSafe for OperationMode
impl Send for OperationMode
impl Sync for OperationMode
impl Unpin for OperationMode
impl UnsafeUnpin for OperationMode
impl UnwindSafe for OperationMode
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