Crates.io | serde-redis |
lib.rs | serde-redis |
version | 0.14.0 |
source | src |
created_at | 2016-03-03 16:23:05.199801 |
updated_at | 2024-09-16 19:44:56.989118 |
description | Serde deserialization for redis-rs |
homepage | |
repository | https://github.com/OneSignal/serde-redis |
max_upload_size | |
id | 4359 |
size | 47,834 |
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.