pub fn encode_response(res: &DataResponse) -> Result<Vec<u8>, Error>
Encode a response to wire format: [0x01][msgpack body] Uses named fields for cross-language compatibility with TypeScript