reth::rpc::types::serde_helpers::displayfromstr

Function serialize

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

Serialize a type T that implements fmt::Display as a quoted string.