Module serde_utils::num
source · Enums§
- An enum that represents either a serde_json::Number integer, or a hex [U64].
- An enum that represents either a serde_json::Number integer, or a hex [U256].
Functions§
- Deserializes the input into a U64, accepting both 0x-prefixed hex and decimal strings with arbitrary precision, defined by serde_json’s
Number
. - Deserializes the input into an
Option<U64>
, usingfrom_int_or_hex_to_u64
to deserialize the inner value. - Deserializes the input into a U256, accepting both 0x-prefixed hex and decimal strings with arbitrary precision, defined by serde_json’s
Number
. - Deserializes the input into an
Option<U256>
, using [from_int_or_hex
] to deserialize the inner value.