Module rocket::serde::msgpack [−][src]
This is supported on crate feature
msgpack
only.Expand description
Automatic MessagePack (de)serialization support.
See MsgPack
for further details.
Enabling
This module is only available when the json
feature is enabled. Enable it
in Cargo.toml
as follows:
[dependencies.rocket]
version = "0.5.0-rc.1"
features = ["msgpack"]
Testing
The LocalRequest
and LocalResponse
types provide msgpack()
and
into_msgpack()
methods to create a request with serialized MessagePack
and deserialize a response as MessagePack, respectively.
Structs
MsgPack | The MessagePack guard: easily consume and return MessagePack. |
Enums
Error | Enum representing errors that can occur while decoding MessagePack data. |
Functions
from_slice | Deserialize an instance of type |