work
[pspp] / rust / src / dictionary.rs
index e9eca118abe71218f8122e70629eccfcf820500f..4a8e272116a4d667151c8f06f05b8ec1f6986e37 100644 (file)
@@ -26,7 +26,7 @@ pub struct Dictionary {
     pub file_label: Option<String>,
     pub documents: Vec<String>,
     pub vectors: HashSet<ByIdentifier<Vector>>,
-    pub attributes: HashSet<ByIdentifier<Attribute>>,
+    pub attributes: HashMap<Identifier, Vec<String>>,
     pub mrsets: HashSet<ByIdentifier<MultipleResponseSet>>,
     pub variable_sets: HashSet<ByIdentifier<VariableSet>>,
     pub encoding: &'static Encoding,
@@ -43,7 +43,7 @@ impl Dictionary {
             file_label: None,
             documents: Vec::new(),
             vectors: HashSet::new(),
-            attributes: HashSet::new(),
+            attributes: HashMap::new(),
             mrsets: HashSet::new(),
             variable_sets: HashSet::new(),
             encoding,