alloy_serde::quantity::opt

Function serialize

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

Serializes an optional primitive number as a “quantity” hex string.