Module near_primitives_core::serialize::dec_format

source ·
Expand description

Serialises number as a string; deserialises either as a string or number.

This format works for u64, u128, Option<u64> and Option<u128> types. When serialising, numbers are serialised as decimal strings. When deserialising, strings are parsed as decimal numbers while numbers are interpreted as is.

Structs§

Traits§

  • Abstraction between integers that we serialise.

Functions§