Add newtype deserialization for Json(_) for parity with Cbor(_).
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -52,7 +52,7 @@ pub(crate) struct Serializer<'a, W: Write> {
|
||||
}
|
||||
|
||||
/// Newtype for JSON serialization.
|
||||
#[derive(Debug, Serialize)]
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct Json<T>(pub T);
|
||||
|
||||
/// Newtype for CBOR serialization.
|
||||
|
||||
Reference in New Issue
Block a user