pub trait AsJson<J: JsonClone, K: JsonFrom<J>> {
fn as_json_with(
&self,
meta: impl Clone + Fn(Option<&J::MetaData>) -> K::MetaData
) -> K;
fn as_json(&self) -> K
where
K::MetaData: Default,
{ ... }
}
Expand description
Type composed of J
JSON values that can be converted
into a K
JSON value.