Function to_writer_named

Source
pub fn to_writer_named<W, T>(writer: W, value: &T) -> Result<(), W::Error>
where W: SerWrite, <W as SerWrite>::Error: Display + Debug, T: Serialize + ?Sized,
Expand description

Serialize value as a MessagePack message to a SerWrite implementation.

Serialize data structures as maps where resulting message will contain field and enum variant names.