Function serialize

Source
pub fn serialize<S>(
    value: &Option<U256>,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serializes an optional TTD as a JSON number.

It returns an error, if the TTD value is larger than 128-bit.