Derive macros to help with Rust PyO3 support.
Please see these docs for the PyDisplay and PyDebug
traits which power Str and Repr.
This crate automatically derives the following functions for structs and enums:
-
__str__ -
__repr__ -
__dir__ -
__getattr__ -
__dict__ -
Skip exposure of variants or fields with the
#[pyo3_smd(skip)]attribute -
Skip variants or fields for
__str__or__repr__differently with the#[pyo3_smd_str(skip)]and#[pyo3_smd_repr(skip)]attributes -
Struct fields which are not
pubare skipped automatically