pub struct OperationMode {
pub id: Id,
pub diagnostic_label: Option<String>,
pub elements: Vec<OperationModeElement>,
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.
diagnostic_label: Option<String>Human-readable, for debugging only.
elements: Vec<OperationModeElement>How the mode behaves across the fill level. Ranges must be contiguous.
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
Source§impl OperationMode
impl OperationMode
Sourcepub fn element_at(&self, fill_level: f64) -> Option<&OperationModeElement>
pub fn element_at(&self, fill_level: f64) -> Option<&OperationModeElement>
The element that applies at fill_level, if any band covers it.
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