pub struct OperationModeBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> OperationModeBuilder<S>
impl<S: State> OperationModeBuilder<S>
Sourcepub fn build(self) -> OperationModewhere
S: IsComplete,
pub fn build(self) -> OperationModewhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: Id) -> OperationModeBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: Id) -> OperationModeBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Unique 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).
Sourcepub fn diagnostic_label(
self,
value: impl Into<String>,
) -> OperationModeBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
pub fn diagnostic_label(
self,
value: impl Into<String>,
) -> OperationModeBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
Sourcepub fn maybe_diagnostic_label(
self,
value: Option<impl Into<String>>,
) -> OperationModeBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
pub fn maybe_diagnostic_label(
self,
value: Option<impl Into<String>>,
) -> OperationModeBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
Sourcepub fn power_ranges(
self,
value: Vec<PowerRange>,
) -> OperationModeBuilder<SetPowerRanges<S>>where
S::PowerRanges: IsUnset,
pub fn power_ranges(
self,
value: Vec<PowerRange>,
) -> OperationModeBuilder<SetPowerRanges<S>>where
S::PowerRanges: IsUnset,
Required.
The power in this mode: start at factor 0, end at factor 1.
Sourcepub fn supply_range(
self,
value: NumberRange,
) -> OperationModeBuilder<SetSupplyRange<S>>where
S::SupplyRange: IsUnset,
pub fn supply_range(
self,
value: NumberRange,
) -> OperationModeBuilder<SetSupplyRange<S>>where
S::SupplyRange: IsUnset,
Required.
The supply rate this mode can deliver, which the CEM matches against the demand. Start at factor 0, end at factor 1.
Sourcepub fn running_costs(
self,
value: NumberRange,
) -> OperationModeBuilder<SetRunningCosts<S>>where
S::RunningCosts: IsUnset,
pub fn running_costs(
self,
value: NumberRange,
) -> OperationModeBuilder<SetRunningCosts<S>>where
S::RunningCosts: IsUnset,
Sourcepub fn maybe_running_costs(
self,
value: Option<NumberRange>,
) -> OperationModeBuilder<SetRunningCosts<S>>where
S::RunningCosts: IsUnset,
pub fn maybe_running_costs(
self,
value: Option<NumberRange>,
) -> OperationModeBuilder<SetRunningCosts<S>>where
S::RunningCosts: IsUnset,
Sourcepub fn abnormal_condition_only(
self,
value: bool,
) -> OperationModeBuilder<SetAbnormalConditionOnly<S>>where
S::AbnormalConditionOnly: IsUnset,
pub fn abnormal_condition_only(
self,
value: bool,
) -> OperationModeBuilder<SetAbnormalConditionOnly<S>>where
S::AbnormalConditionOnly: IsUnset,
Required.
Whether this mode may only be used during an abnormal condition.
Auto Trait Implementations§
impl<S> Forget for OperationModeBuilder<S>
impl<S> Freeze for OperationModeBuilder<S>
impl<S> Move for OperationModeBuilder<S>
impl<S> RefUnwindSafe for OperationModeBuilder<S>
impl<S> Send for OperationModeBuilder<S>
impl<S> Sync for OperationModeBuilder<S>
impl<S> Unpin for OperationModeBuilder<S>
impl<S> UnsafeUnpin for OperationModeBuilder<S>
impl<S> UnwindSafe for OperationModeBuilder<S>
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