Function substreams::proto::encode

source ยท
pub fn encode<M: Message>(msg: &M) -> Result<Vec<u8>, EncodeError>
Expand description

Given a Protobuf message it will encode it and return the byte array.