Skip to main content

pydict_to_params

Function pydict_to_params 

Source
pub fn pydict_to_params(
    py: Python<'_>,
    dict: Py<PyDict>,
) -> PyResult<Option<Params>>
Expand description

Converts a Python dict to Params (IndexMap<String, Value>).

ยงErrors

Returns a PyErr if:

  • the dict cannot be serialized to JSON
  • the JSON is not a valid object