foundry_config::utils

Function deserialize_stringified_percent

Source
pub(crate) fn deserialize_stringified_percent<'de, D>(
    deserializer: D,
) -> Result<u32, D::Error>
where D: Deserializer<'de>,
Expand description

Deserialize stringified percent. The value must be between 0 and 100 inclusive.