Skip to main content

json_literal

Macro json_literal 

Source
macro_rules! json_literal {
    ($ty:ty) => { ... };
}
Expand description

Implements the Linked-Data resource traits for a serde type, mapping it onto a canonical rdf:JSON literal.

The type must implement serde::Serialize and serde::Deserialize. The generated impls serialize the value to JSON, canonicalize it, and store it as a literal of type RDF_JSON.