Crate serde_pyobject

Source
Expand description

PyO3’s PyAny as a serde data format

This crate provides a mapping from serde data model to Python objects.

Re-exports§

pub use pyo3;

Macros§

pydict
Create pyo3::types::PyDict from a list of key-value pairs.
pylist
Create pyo3::types::PyList from a list of values.

Structs§

Error
New-type wrapper of PyErr to implement serde::ser::Error.

Functions§

from_pyobject
Deserialize a Python object into Rust type T: Deserialize.
to_pyobject
Serialize T: Serialize into a pyo3::PyAny value.