Added more derives to DateTimeInterval

This commit is contained in:
Martin Berg Alstad 2024-08-24 19:29:19 +02:00
parent 00e894140f
commit 3318aacf7c

View File

@ -1,7 +1,8 @@
use chrono::NaiveDateTime; use chrono::NaiveDateTime;
use derive_more::Constructor; use derive_more::Constructor;
#[derive(Debug, Clone, Copy, Constructor)] #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Constructor)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct DateTimeInterval { pub struct DateTimeInterval {
pub start: NaiveDateTime, pub start: NaiveDateTime,
pub end: NaiveDateTime, pub end: NaiveDateTime,