derived Hash trait for PgInterval (#2793)

This commit is contained in:
Ramzi Sabra 2023-10-04 23:47:10 +03:00 committed by GitHub
parent e80291b2a7
commit c2eda1c8ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ use crate::{PgArgumentBuffer, PgHasArrayType, PgTypeInfo, PgValueFormat, PgValue
// `PgInterval` is available for direct access to the INTERVAL type // `PgInterval` is available for direct access to the INTERVAL type
#[derive(Debug, Eq, PartialEq, Clone)] #[derive(Debug, Eq, PartialEq, Clone, Hash)]
pub struct PgInterval { pub struct PgInterval {
pub months: i32, pub months: i32,
pub days: i32, pub days: i32,