Enums§
- Number
OrHex U64 - An enum that represents either a serde_json::Number integer, or a hex [U64].
- Number
OrHex U256 - An enum that represents either a serde_json::Number integer, or a hex [U256].
Functions§
- deserialize_
u64_ from_ num_ or_ hex - from_
int_ or_ hex_ to_ u64 - Deserializes the input into a U64, accepting both 0x-prefixed hex and
decimal strings with arbitrary precision, defined by serde_json’s
Number
. - from_
int_ or_ hex_ to_ u64_ opt - Deserializes the input into an
Option<U64>
, usingfrom_int_or_hex_to_u64
to deserialize the inner value. - from_
int_ or_ hex_ to_ u256 - Deserializes the input into a U256, accepting both 0x-prefixed hex and
decimal strings with arbitrary precision, defined by serde_json’s
Number
. - from_
int_ or_ hex_ to_ u256_ opt - Deserializes the input into an
Option<U256>
, using [from_int_or_hex
] to deserialize the inner value.