pub fn pydict_to_params(
py: Python<'_>,
dict: &Py<PyDict>,
) -> PyResult<Option<Params>>Expand description
Converts a Python dict to Params (IndexMap<String, Value>).
An empty dict canonicalizes to None, distinguishing “no params provided”
from a populated map. This is not the inverse of params_to_pydict, which
accepts &Params (not Option<&Params>); callers handle the outer option.
Integer values must fit signed or unsigned 64-bit integers, including in nested containers.
§Errors
Returns an error if:
- The dict cannot be serialized to JSON.
- The JSON is not a valid object.
- An integer value is outside the signed or unsigned 64-bit range (
ValueError).