Implement FromStr for Map<String, Value>

This commit is contained in:
Mick van Gelderen 2025-07-10 13:34:11 -07:00
parent cd55b5a0ff
commit fd35a02901
No known key found for this signature in database
GPG Key ID: 6BD3FEFAFF7626D1

View File

@ -272,6 +272,14 @@ impl<'de> serde::Deserializer<'de> for Map<String, Value> {
}
}
impl FromStr for Map<String, Value> {
type Err = Error;
fn from_str(s: &str) -> Result<Self, Error> {
super::super::de::from_str(s)
}
}
impl<'de> serde::Deserializer<'de> for Value {
type Error = Error;