Merge pull request #662 from danburkert/json-derive

derive Clone, PartialEq and Eq for postgres_types::Json
This commit is contained in:
Steven Fackler 2020-10-04 21:11:24 -04:00 committed by GitHub
commit 510062238d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ use std::fmt::Debug;
use std::io::Read;
/// A wrapper type to allow arbitrary `Serialize`/`Deserialize` types to convert to Postgres JSON values.
#[derive(Debug)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Json<T>(pub T);
impl<'a, T> FromSql<'a> for Json<T>