Update json.rs

This commit is contained in:
Sunli 2020-05-08 10:40:29 +08:00
parent 8d5f908f96
commit 08539d8151

View File

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