derive Clone for DateTime (#23)

This might be useful for `struct`s that want to store a `DateTime` while also deriving `Clone` themself.
This commit is contained in:
Johann150
2022-06-22 22:01:07 +02:00
committed by GitHub
parent e604f8fcec
commit 0064d3443a
+1 -1
View File
@@ -779,7 +779,7 @@ pub struct ContentType<'x> {
}
/// An RFC5322 datetime.
#[derive(Debug, PartialEq, Eq)]
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
pub struct DateTime {
pub year: u32,