1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use pyo3::prelude::*; #[pyclass(set_all)] struct Foo; #[pyclass(set_all)] struct Foo2{ #[pyo3(set)] field: u8, } #[pyclass(get_all)] struct Foo3; #[pyclass(get_all)] struct Foo4{ #[pyo3(get)] field: u8, } fn main() {}