Crate serde_resp[][src]

serde-RESP

Redis RESP protocol serialization and deserialization with serde. Read Specification

Usage

IMPORTANT: Do NOT serialize and deserialize with any other types besides RESPType! You may get panic or incorrect results!

Here are the RESP types and their corresponding Rust types for serde.

To serialize, use ser::to_string or ser::to_writer.

To deserialize, use de::from_str or de::from_reader or de::from_buf_reader.

For usage examples, refer to RESPType

Modules

de
ser

Enums

Error

Error type used by the crate

RESPType

This enum creates a one-to-one type mapping with RESP types. Please only use variants of this type for serde operations.

Type Definitions

Result

Result type used by the crate