/// Serializes the manifest into a byte array.
Serializes the manifest into a byte array.
Serializes the manifest into a byte array .
pub fn encode_manifest(manifest: &Manifest) -> Vec<u8> {
    use prost::Message;
    let pb_manifest = pb::Manifest::from(manifest.clone());
    let mut buf = vec![];
    pb_manifest
        .encode(&mut buf)
        .expect("failed to encode manifest to protobuf");
    buf
}
pub fn encode_manifest ( manifest : & Manifest ) -> Vec < u8 > { use prost :: Message ; let pb_manifest = pb :: Manifest :: from ( manifest . clone ( ) ) ; let mut buf = vec ! [ ] ; pb_manifest . encode ( & mut buf ) . expect ( " " ) ; buf }
Serializes the manifest into a byte array.
Serializes the manifest into a byte array .
manifest
&Manifest