juniper_serde

Crates.iojuniper_serde
lib.rsjuniper_serde
version0.1.0
sourcesrc
created_at2019-06-11 20:13:37.271615
updated_at2019-06-11 20:13:37.271615
descriptionSerde support for Juniper types
homepage
repositoryhttps://github.com/JeanMertz/juniper_serde
max_upload_size
id140462
size15,097
Jean Mertz (JeanMertz)

documentation

README

Serde support for juniper::ID

This crate allows you to derive Serialize and Deserialize the juniper::ID type.

Obsolete

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.

Example

use juniper::ID;
use serde::{Serialize, Deserialize};

#[Serialize, Deserialize]
struct Car {
    #[serde(with = "juniper_serde")]
    id: ID,

    model: String
}
Commit count: 1

cargo fmt