Crates.io | serde-redis2 |
lib.rs | serde-redis2 |
version | 0.12.0 |
source | src |
created_at | 2021-12-22 07:57:30.760251 |
updated_at | 2021-12-22 07:57:30.760251 |
description | Serde deserialization for redis-rs |
homepage | |
repository | https://github.com/Bajix/serde-redis2 |
max_upload_size | |
id | 501534 |
size | 47,704 |
serde serialization and deserialization of redis-rs values
This crate gives you automatic deserialization of values returned from redis-rs.
use serde_redis::RedisDeserialize;
#[derive(Debug, Deserialize, PartialEq)]
struct Simple {
a: String,
b: String,
}
let s: Simple = redis.hgetall("simple_hash")?
.deserialize()?;
redis::Value
type.Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.