Closed tqwewe closed 1 year ago
Nevermind, it seems like its not possible since we cannot implement Borrow for serde_json::Value.
You should be able to convert it via .into()
into serde_json::Value
https://github.com/PSeitz/serde_json_borrow/blob/main/src/value.rs#L382
This would allow me to use
Cow<'a, serde_json_borrow::Value>
, which is useful in my case forHashMap<'static str, Cow<'static, serde_json_borrow::Value>
.