Merge pull request #662 from danburkert/json-derive
derive Clone, PartialEq and Eq for postgres_types::Json
This commit is contained in:
commit
510062238d
@ -8,7 +8,7 @@ use std::fmt::Debug;
|
|||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
|
|
||||||
/// A wrapper type to allow arbitrary `Serialize`/`Deserialize` types to convert to Postgres JSON values.
|
/// 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);
|
pub struct Json<T>(pub T);
|
||||||
|
|
||||||
impl<'a, T> FromSql<'a> for Json<T>
|
impl<'a, T> FromSql<'a> for Json<T>
|
||||||
|
Loading…
Reference in New Issue
Block a user