[][src]Module grin_core::libtx::secp_ser::string_or_u64

Used to ensure u64s are serialised in json as strings by default, since it can't be guaranteed that consumers will know what to do with u64 literals (e.g. Javascript). However, fields using this tag can be deserialized from literals or strings. From solutions on: https://github.com/serde-rs/json/issues/329

Functions

deserialize

deserialize from either literal or string

serialize

serialize into a string