changed Object API
This commit is contained in:
parent
dcf2bac9b6
commit
fe99fddc29
2 changed files with 10 additions and 4 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue