Function ruma_common::serde::json_to_buf
source ยท pub fn json_to_buf<B: Default + BufMut, T: Serialize>(val: &T) -> Result<B>
Expand description
Creates a buffer and writes a serializable value to it.
pub fn json_to_buf<B: Default + BufMut, T: Serialize>(val: &T) -> Result<B>
Creates a buffer and writes a serializable value to it.