Skip to main content

pyobject_to_fee_model_any

Function pyobject_to_fee_model_any 

Source
pub fn pyobject_to_fee_model_any(
    obj: &Bound<'_, PyAny>,
) -> PyResult<FeeModelAny>
Expand description

Extracts a Python fee model object into a Rust FeeModelAny.

ยงErrors

Returns an error if obj is neither a supported built-in model nor a Python object with a get_commission method.