pub fn pyobject_to_account_any(
py: Python<'_>,
account: Py<PyAny>,
) -> PyResult<AccountAny>Expand description
Converts a Python account object into a Rust AccountAny enum.
ยงErrors
Returns a PyErr if:
- retrieving the
account_typeattribute fails. - extracting the object into
CashAccountorMarginAccountfails. - the
account_typeis unsupported.