[−][src]Function ssb_json_msg::json::to_legacy
pub fn to_legacy<W, T>(
msg: &Message<T>,
w: &mut W,
compact: bool
) -> Result<(), EncodeJsonError> where
W: Write,
T: Serialize,
Serialize a Message
into a writer, using the
legacy encoding.
If compact
, this omits all whitespace. Else, this produces the signing encoding.