I have a dbase file that contains a Memo field, however I'm not sure what type I should put in the structure, and there doesn't appear to be any way to skip over a field.
#[derive(serde::Deserialize)]
pub struct Record {
#[serde(rename = "DESCRIPTION")]
description: Option<String>
}
fn main() {
let mut reader = dbase::Reader::from_path("existing_database.dbf").unwrap();
let records = reader.read_as::<Record>();
dbg!(records);
}
I have a dbase file that contains a Memo field, however I'm not sure what type I should put in the structure, and there doesn't appear to be any way to skip over a field.
This returns the following error:
As a workaround, I implemented the unit type in de.rs and simply make the type ():
Is there another type that I should be using? It would be nice to not skip over this field in the future if I end up needing it.