tmontaigu / dbase-rs

Rust library to read & write dBase files.
MIT License
29 stars 30 forks source link

FieldType is used in a public api but is in a private module #33

Closed apps4uco closed 2 years ago

apps4uco commented 2 years ago

FieldType is use in a public api but it is not currently exported.

 let ft:FieldType=field.field_type();

Error: cannot find type FieldType in this scope

Documentation Link:

pub fn field_type(&self) -> FieldType

There is a non ideal workaround of

let field_type:u8=field.field_type().into();

However it would be a fairly simple fix to make the relevant module public or move the enum into a public module,

tmontaigu commented 2 years ago

Indeed this is missing 😳, i'll add it