Skip to content

Commit

Permalink
Add Hash to Timestamp's derive list
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Nov 22, 2023
1 parent d37db64 commit 3aa6012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ cfg_if::cfg_if! {
/// assert_eq!(timestamp.unix_timestamp(), 1462015105);
/// assert_eq!(timestamp.to_string(), "2016-04-30T11:18:25.796Z");
/// ```
#[derive(Debug, Clone, Copy, Eq, PartialEq, Deserialize, Serialize, Ord, PartialOrd)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash, Deserialize, Serialize, Ord, PartialOrd)]
#[serde(transparent)]
pub struct Timestamp(DateTime<Utc>);

Expand Down Expand Up @@ -146,7 +146,7 @@ cfg_if::cfg_if! {
/// assert_eq!(timestamp.unix_timestamp(), 1462015105);
/// assert_eq!(timestamp.to_string(), "2016-04-30T11:18:25.796Z");
/// ```
#[derive(Debug, Clone, Copy, Eq, PartialEq, Deserialize, Serialize, Ord, PartialOrd)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash, Deserialize, Serialize, Ord, PartialOrd)]
#[serde(transparent)]
pub struct Timestamp(#[serde(with = "rfc3339")] OffsetDateTime);

Expand Down

0 comments on commit 3aa6012

Please sign in to comment.