mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 08:01:21 +00:00
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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user