chromiumoxide::cdp::de

Function deserialize_from_str_optional

Source
pub fn deserialize_from_str_optional<'de, D, T>(
    data: D,
) -> Result<Option<T>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>, T: FromStr<Err = String>,
Expand description

Use the FromStr implementation to serialize an optional value