Skip to main content

encode_body

Function encode_body 

Source
pub fn encode_body(body: &DirectMessageBody) -> Result<Vec<u8>, String>
Expand description

Encode a DirectMessageBody to wire bytes per the format described in the module docs (magic byte + CBOR). The returned Vec<u8> is what gets passed to compose_direct_message’s body parameter.