Skip to main content

unwrap_assets_response

Macro unwrap_assets_response 

Source
macro_rules! unwrap_assets_response {
    ($variant:ident, $result:expr) => { ... };
}
Expand description

Extract the expected payload from a DeDust AssetsResponse.

Returns ApiClientsError::UnexpectedResponse when the response variant does not match the requested variant name.