Skip to main content

Record

Type Alias Record 

Source
pub type Record = HashMap<String, Value>;
Expand description

Property record type alias.

A PropertyRecord is a map from string keys to Value types, storing structured data about a Subject.

§Examples

use pattern_core::{PropertyRecord, Value};
use std::collections::HashMap;

let mut props: PropertyRecord = HashMap::new();
props.insert("name".to_string(), Value::VString("Alice".to_string()));
props.insert("age".to_string(), Value::VInteger(30));

Aliased Type§

pub struct Record { /* private fields */ }