pub struct IntConverterDecl {
pub name: String,
pub meta: NodeMeta,
pub p_value: String,
pub formula_to: String,
pub formula_from: String,
pub variables_to: Vec<(String, String)>,
pub variables_from: Vec<(String, String)>,
pub unit: Option<String>,
pub predicates: PredicateRefs,
}Expand description
Declaration of an IntConverter node for integer-specific bidirectional conversion.
Fields§
§name: StringFeature name exposed to clients.
meta: NodeMetaShared metadata.
p_value: StringName of the node providing the raw register value.
formula_to: StringExpression converting raw register value to user-facing value (FROM direction).
formula_from: StringExpression converting user-facing value back to raw register value (TO direction).
variables_to: Vec<(String, String)>Mapping of expression variables to provider node names for formula_to.
variables_from: Vec<(String, String)>Mapping of expression variables to provider node names for formula_from.
unit: Option<String>Engineering unit (if provided).
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Trait Implementations§
Source§impl Clone for IntConverterDecl
impl Clone for IntConverterDecl
Source§fn clone(&self) -> IntConverterDecl
fn clone(&self) -> IntConverterDecl
Returns a duplicate of the value. Read more
1.0.0 · 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 IntConverterDecl
impl Debug for IntConverterDecl
Source§impl<'de> Deserialize<'de> for IntConverterDecl
impl<'de> Deserialize<'de> for IntConverterDecl
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
Auto Trait Implementations§
impl Freeze for IntConverterDecl
impl RefUnwindSafe for IntConverterDecl
impl Send for IntConverterDecl
impl Sync for IntConverterDecl
impl Unpin for IntConverterDecl
impl UnwindSafe for IntConverterDecl
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