rust pyo3数据类型处理

pyo3工程中融合rust与python代码时,数据类型转换报错,如何将rust中的Vec转到python可用的类型?
原代码: batch.erkey.into_pyarray(py), //batch.erkey类型为Vec
报错信息如下:
the method into_pyarray exists for struct Vec<String>, but its trait bounds were not satisfied
the following trait bounds were not satisfied:
String: numpy::Element
which is required by Vec<String>: IntoPyArrayrustcClick for full compiler diagnostic
string.rs(365, 1): doesn't satisfy String: numpy::Element
mod.rs(396, 1): doesn't satisfy Vec<String>: IntoPyArray

你把报错发给我看一下

目前没有找到把Vec< String >直接转为pyarray的方法,因为这个类型本身没有实现element trait,所以直接把工程中的这部分功能替换掉了,后续找到方法再更新这个问题。