Trait oppgave::TaskDecodable
[−]
[src]
pub trait TaskDecodable where
Self: Sized, { fn decode_task(value: &Value) -> RedisResult<Self>; }
Task objects that can be reconstructed from the JSON stored in Redis
Implemented for all Decodable
objects by default.
Required Methods
fn decode_task(value: &Value) -> RedisResult<Self>
Decode the given Redis value into a task
This should decode the string value into a proper task. The string value is encoded as JSON.
Implementors
impl<T: Decodable> TaskDecodable for T