serialize

Function serialize 

pub fn serialize<S>(
    value: &Option<Uint<256, 4>>,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::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.