How to convert AssetId to string with 0x prefix?

Hi guys
I need to save AssetId in 0x... format but asset_id.to_string() gives me part without 0x and I forced to use format!("0x{}", usdc.contract_id().hash)
Is there any more elegant way to do it?