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

Function deserialize

pub fn deserialize<'de, T, D>(
    deserializer: D,
) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>, T: FromStr, <T as FromStr>::Err: Display,
Expand description

Deserialize a quoted string to a type T using FromStr.