pub trait ToNodeProperties {
// Required methods
fn node_type_name(&self) -> &'static str;
fn node_type_code(&self) -> u16;
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>;
}Expand description
Trait for converting typed model structs to graph node property maps.
Implementations map struct fields to camelCase property keys matching downstream consumer (AssureTwin) DTO expectations.
Required Methods§
Sourcefn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
Entity type name (snake_case), e.g. "uncertain_tax_position".
Sourcefn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
Numeric entity type code for registry, e.g. 416.
Sourcefn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Convert all fields to a property map with camelCase keys.