pub trait AsAnyJson<K: JsonBuild> {
fn as_json_with(&self, meta: K::MetaData) -> K;
fn as_json(&self) -> K
where
K::MetaData: Default,
{ ... }
}
Expand description
Type that can be converted into a K
JSON value.
Required methods
fn as_json_with(&self, meta: K::MetaData) -> K
fn as_json_with(&self, meta: K::MetaData) -> K
Converts this value into a K
JSON value using the
given meta
value as metadata.