Struct serde_redis::decode::Deserializer
[−]
[src]
pub struct Deserializer { // some fields omitted }
deserializes Redis Value
s
Methods
impl Deserializer
fn new(redis_value: Value) -> Result<Deserializer>
fn peek(&self) -> Option<&Value>
Returns a reference to the next value
Some qualification is required on "next value". If processing a subsequence (eg a hashmap returned in a pipeline), and the subsequence has come to an end, None will be returned even though the pipeline itself has additional data. This signals to the current visitor that there are no more values for it. The sequence visitor will continue using the pipeline data.
fn next(&mut self) -> Result<Value>
Return the next value
See the qualification in the peek
documentation as to the meaning of "next value".
Unlike peek, this function will continue iterating on values. A value will be returned as long as the current subsequence or root sequence still has Values.
fn completed_set(&mut self)
Notify that current bulk item has been completed (eg map, sequence)
Visitors use this to update the deserializer state.