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§
- Create
pyo3::types::PyDict
from a list of key-value pairs. - Create
pyo3::types::PyList
from a list of values.
Structs§
- New-type wrapper of
PyErr
to implementserde::ser::Error
.
Functions§
- Deserialize a Python object into Rust type
T: Deserialize
. - Serialize
T: Serialize
into apyo3::PyAny
value.