Skip to main content

encode_json

Function encode_json 

Source
pub fn encode_json<T: Serialize>(
    value: &T,
    what: &str,
) -> Result<String, HistoryError>
Available on crate feature serve and (crate features serve-history-postgres or serve-history-sqlite) only.
Expand description

Generic body (de)serialization for the catalog tables (#279).