#[non_exhaustive]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 bindings: FormulaBindings,
pub unit: Option<String>,
pub output: SkOutput,
pub slope: Slope,
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringFeature name exposed to clients.
meta: NodeMetaShared metadata.
p_value: StringName of the node providing the raw register value.
formula_to: String<FormulaTo>: converts the feature value to the raw register value.
This is the write direction; its FROM variable is the incoming
value.
formula_from: String<FormulaFrom>: converts the raw register value to the feature value.
This is the read direction; its TO variable is the raw value.
variables_to: Vec<(String, String)>Mapping of formula variables to provider node names for formula_to.
variables_from: Vec<(String, String)>Mapping of formula variables to provider node names for formula_from.
bindings: FormulaBindingsNamed literals and sub-formulas referenced by either formula.
unit: Option<String>Engineering unit (if provided).
output: SkOutputDesired output type.
slope: Slope<Slope>: how the feature value moves with the raw one.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.