Crates.io | juniper_serde |
lib.rs | juniper_serde |
version | 0.1.0 |
source | src |
created_at | 2019-06-11 20:13:37.271615 |
updated_at | 2019-06-11 20:13:37.271615 |
description | Serde support for Juniper types |
homepage | |
repository | https://github.com/JeanMertz/juniper_serde |
max_upload_size | |
id | 140462 |
size | 15,097 |
This crate allows you to derive Serialize
and Deserialize
the juniper::ID
type.
This crate will become obsolete once a new version of Juniper is released, containing commit
3456786.
As of version 0.12.0
, this supporting crate is still required.
use juniper::ID;
use serde::{Serialize, Deserialize};
#[Serialize, Deserialize]
struct Car {
#[serde(with = "juniper_serde")]
id: ID,
model: String
}