[][src]Function serde_bebop::to_bytes_message

pub fn to_bytes_message<T>(value: &T) -> Result<Vec<u8>> where
    T: Serialize

Forces serialization as a message. Normally, the serializer will automatically assume a Bebop message if there are optional fields and a Bebop struct if all the fields are required. This will force encoding as a message. Right now this will only force the top level struct to be a message, any embedded structs will not be assumed