Function serde_utils::num::from_int_or_hex_to_u256
source · pub fn from_int_or_hex_to_u256<'de, D>(
deserializer: D
) -> Result<U256, D::Error>where
D: Deserializer<'de>,
Expand description
Deserializes the input into a U256, accepting both 0x-prefixed hex and
decimal strings with arbitrary precision, defined by serde_json’s
Number
.