mirror of
https://github.com/serde-rs/json.git
synced 2025-09-29 05:51:21 +00:00
Implement FromStr for Map<String, Value>
This commit is contained in:
parent
cd55b5a0ff
commit
fd35a02901
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user