@@ -15,7 +15,7 @@ mod std_time;
1515mod time;
1616
1717#[ cfg( feature = "postgres_backend" ) ]
18- #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , AsExpression , FromSqlRow ) ]
18+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , PartialOrd , Ord , AsExpression , FromSqlRow ) ]
1919#[ diesel( sql_type = Timestamp ) ]
2020#[ diesel( sql_type = Timestamptz ) ]
2121/// Timestamps are represented in Postgres as a 64 bit signed integer representing the number of
@@ -30,7 +30,7 @@ impl Defaultable for PgTimestamp {
3030}
3131
3232#[ cfg( feature = "postgres_backend" ) ]
33- #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , AsExpression , FromSqlRow ) ]
33+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , PartialOrd , Ord , AsExpression , FromSqlRow ) ]
3434#[ diesel( sql_type = Date ) ]
3535/// Dates are represented in Postgres as a 32 bit signed integer representing the number of julian
3636/// days since January 1st 2000. This struct is a dumb wrapper type, meant only to indicate the
@@ -47,7 +47,7 @@ impl Defaultable for PgDate {
4747/// microseconds since midnight. This struct is a dumb wrapper type, meant only to indicate the
4848/// integer's meaning.
4949#[ cfg( feature = "postgres_backend" ) ]
50- #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , AsExpression , FromSqlRow ) ]
50+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , PartialOrd , Ord , AsExpression , FromSqlRow ) ]
5151#[ diesel( sql_type = Time ) ]
5252pub struct PgTime ( pub i64 ) ;
5353
@@ -62,7 +62,7 @@ impl Defaultable for PgTime {
6262/// representing number of months. This struct is a dumb wrapper type, meant only to indicate the
6363/// meaning of these parts.
6464#[ cfg( feature = "postgres_backend" ) ]
65- #[ derive( Debug , Clone , Copy , PartialEq , Eq , AsExpression , FromSqlRow ) ]
65+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , AsExpression , FromSqlRow ) ]
6666#[ diesel( sql_type = Interval ) ]
6767pub struct PgInterval {
6868 /// The number of whole microseconds
0 commit comments