to_writer_compact

Function to_writer_compact 

Source
pub fn to_writer_compact<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 arrays without field names and enum variants as indexes.

Warning: with this function only last fields can be skipped from a data structure.