Function from_pydict
pub fn from_pydict(
py: Python<'_>,
dict: &Py<PyDict>,
) -> Result<Option<Params>, PyErr>Expand description
Converts a Python dict to Params.
This is a convenience function that wraps pydict_to_params.
ยง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.