1 2 3 4 5 6 7 8 9 10 11
use serde_json; /// /// Trait implemented by types that can be converted to and from a JSON value representation /// pub trait ToJsonValue { /// /// Creates a JSON representation of this item /// fn to_json(&self) -> serde_json::Value; }