Trait oppgave::TaskEncodable
[−]
[src]
pub trait TaskEncodable { fn encode_task(&self) -> Vec<u8>; }
Task objects that can be encoded to JSON to be stored in Redis
Implemented for all Encodable
objects by default.
Required Methods
fn encode_task(&self) -> Vec<u8>
Encode the value into a Blob to insert into Redis
It should encode the value into a JSON string.
Implementors
impl<T: Encodable> TaskEncodable for T