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};
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>,
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,