Derive Serialize & Deserialize for Json

This commit is contained in:
William Myers 2020-05-25 15:34:43 -06:00
parent ebc6c80ddd
commit faebf81f7b
No known key found for this signature in database
GPG Key ID: 87AC27DE8462AB71

View File

@ -5,7 +5,7 @@ use serde::Serialize;
use std::ops::{Deref, DerefMut};
/// A scalar that can represent any JSON value.
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq, Hash)]
pub struct Json<T>(pub T);
impl<T> Deref for Json<T> {