changed Object API

This commit is contained in:
JOLIMAITRE Matthieu 2022-06-01 04:00:06 +03:00
parent dcf2bac9b6
commit fe99fddc29
2 changed files with 10 additions and 4 deletions

View file

@ -139,6 +139,12 @@ impl From<&str> for Value {
}
}
impl From<HashMap<String, Value>> for Value {
fn from(value: HashMap<String, Value>) -> Self {
Self::Object(value)
}
}
impl<T> From<Option<T>> for Value
where
T: Into<Value>,