Trait kserde::Deserializer[][src]

pub trait Deserializer<'a> {
    fn string(&mut self) -> Option<Cow<'a, str>>;
fn bool(&mut self) -> Option<bool>;
fn i64(&mut self) -> Option<i64>;
fn f64(&mut self) -> Option<f64>;
fn any<'b>(&'b mut self) -> Option<AnyValue<'a>>;
fn begin_object(&mut self) -> bool;
fn has_property(&mut self) -> Option<Cow<'a, str>>;
fn begin_array(&mut self) -> bool;
fn has_array_value(&mut self) -> bool; }

If a value returns None then it should be assumed that the deserializer is no longer in a valid state.

Required methods

fn string(&mut self) -> Option<Cow<'a, str>>[src]

fn bool(&mut self) -> Option<bool>[src]

fn i64(&mut self) -> Option<i64>[src]

fn f64(&mut self) -> Option<f64>[src]

fn any<'b>(&'b mut self) -> Option<AnyValue<'a>>[src]

fn begin_object(&mut self) -> bool[src]

fn has_property(&mut self) -> Option<Cow<'a, str>>[src]

When this returns None we’re at the end of the object or an error was encountered. The name of the property is returned.

fn begin_array(&mut self) -> bool[src]

fn has_array_value(&mut self) -> bool[src]

When this returns None we’re at the end of the array or an error was encountered.

Loading content...

Implementors

impl<'a> Deserializer<'a> for JSONDeserializer<'a>[src]

Loading content...