documentrecord
[pspp] / rust / src / cooked.rs
index b3c0ff74bf585aaed00f0974a8560d1806c039d1..095bfe507db1bc1297168fa7e4a8bfdefaa072f8 100644 (file)
@@ -8,7 +8,7 @@ use crate::{
     endian::Endian,
     format::{Error as FormatError, Spec, UncheckedSpec},
     identifier::{Error as IdError, Identifier},
-    raw::{self, RawStr, RawString, VarType},
+    raw::{self, RawStr, RawString, VarType, RawDocumentLine},
 };
 use chrono::{NaiveDate, NaiveDateTime, NaiveTime};
 use encoding_rs::{DecoderResult, Encoding};
@@ -215,7 +215,7 @@ struct Headers<'a> {
     header: Option<&'a raw::HeaderRecord<RawString>>,
     variables: Vec<&'a raw::VariableRecord<RawString, RawStr<8>>>,
     value_labels: Vec<&'a raw::ValueLabelRecord<RawStr<8>, RawString>>,
-    document: Option<&'a raw::DocumentRecord>,
+    document: Option<&'a raw::DocumentRecord<RawDocumentLine>>,
     integer_info: Option<&'a raw::IntegerInfoRecord>,
     float_info: Option<&'a raw::FloatInfoRecord>,
     variable_sets: Vec<&'a raw::TextRecord>,
@@ -780,7 +780,7 @@ impl TryDecode for VariableRecord {
 pub struct DocumentRecord(Vec<String>);
 
 impl TryDecode for DocumentRecord {
-    type Input = crate::raw::DocumentRecord;
+    type Input = crate::raw::DocumentRecord<RawDocumentLine>;
 
     fn try_decode(
         decoder: &mut Decoder,