diff --git a/src/field/types.rs b/src/field/types.rs index 235c488..0b28e26 100755 --- a/src/field/types.rs +++ b/src/field/types.rs @@ -408,8 +408,9 @@ impl From for Date { } } +/// An error representing a conversion error from [`chrono::NaiveDate`] to [`Date`] when conversion +/// fails if year > 9999 or year < 0. #[cfg(feature = "chrono")] -/// An error representing #[derive(Debug, PartialEq)] pub struct ChronoDateConversionError; diff --git a/src/lib.rs b/src/lib.rs index def813e..e3da247 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -311,6 +311,9 @@ pub use crate::reading::{ pub use crate::record::Record; pub use crate::writing::{FieldWriter, TableWriter, TableWriterBuilder, WritableRecord}; +#[cfg(feature = "chrono")] +pub use crate::field::types::ChronoDateConversionError; + /// macro to define a struct that implements the ReadableRecord and WritableRecord /// /// # Examples