pub fn encode(encodable: &impl Encodable, options: Options) -> Result<Vec<u8>>
Encode to a binary buffer.