Function solana_program::short_vec::serialize
source · pub fn serialize<S: Serializer, T: Serialize>(
elements: &[T],
serializer: S
) -> Result<S::Ok, S::Error>
Expand description
If you don’t want to use the ShortVec newtype, you can do ShortVec serialization on an ordinary vector with the following field annotation:
#[serde(with = “short_vec”)]