Skip to main content

bounded

Function bounded 

Source
pub fn bounded<'de, D: Deserializer<'de>, const N: usize>(
    deserializer: D,
) -> Result<Vec<u8>, D::Error>
Expand description

Refuses a string that would decode to more than N bytes before decoding it.