(vm: &VirtualMachine, obj: &'a PyObject)
| 83 | |
| 84 | impl<'a> TryFromBorrowedObject<'a> for PythonPerson { |
| 85 | fn try_from_borrowed_object(vm: &VirtualMachine, obj: &'a PyObject) -> PyResult<Self> { |
| 86 | let name = obj.get_attr("name", vm)?.try_into_value::<String>(vm)?; |
| 87 | Ok(Self { name }) |
| 88 | } |
| 89 | } |
| 90 | } |