[][src]Function solana_sdk::short_vec::serialize

pub fn serialize<S: Serializer, T: Serialize>(
    elements: &[T],
    serializer: S
) -> Result<S::Ok, S::Error>

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")]