Skip to main content

pyobject_to_fee_model_handle

Function pyobject_to_fee_model_handle 

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

Extracts a Python fee model object into a runtime FeeModelHandle.

ยงErrors

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