pub fn deserialize<'de, D, T>(deserializer: D) -> Result<Vec<T>, D::Error> where
    D: Deserializer<'de>,
    T: Deserialize<'de>, 
Expand description

If you don’t want to use the ShortVec newtype, you can do ShortVec deserialization on an ordinary vector with the following field annotation:

#[serde(with = “short_vec”)]