pyo3::impl_::frompyobject

Function extract_struct_field

Source
pub fn extract_struct_field<'py, T>(
    obj: &Bound<'py, PyAny>,
    struct_name: &str,
    field_name: &str,
) -> PyResult<T>
where T: FromPyObject<'py>,
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here