Function solana_sdk::short_vec::deserialize [−][src]
pub fn deserialize<'de, D, T>(
deserializer: D
) -> Result<Vec<T, Global>, <D as Deserializer<'de>>::Error> where
T: Deserialize<'de>,
D: Deserializer<'de>,
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”)]