pub struct ConverterDecl {
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 output: SkOutput,
pub predicates: PredicateRefs,
}Expand description
Declaration of a Converter node for bidirectional value transformation.
Converters expose a floating-point value computed from an underlying register or node via a formula.
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).
output: SkOutputDesired output type.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Trait Implementations§
Source§impl Clone for ConverterDecl
impl Clone for ConverterDecl
Source§fn clone(&self) -> ConverterDecl
fn clone(&self) -> ConverterDecl
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 ConverterDecl
impl Debug for ConverterDecl
Source§impl<'de> Deserialize<'de> for ConverterDecl
impl<'de> Deserialize<'de> for ConverterDecl
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 ConverterDecl
impl RefUnwindSafe for ConverterDecl
impl Send for ConverterDecl
impl Sync for ConverterDecl
impl Unpin for ConverterDecl
impl UnwindSafe for ConverterDecl
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