pub trait DeJson: Sized {
    // Required method
    fn de_json(
        s: &mut DeJsonState,
        i: &mut Chars<'_>
    ) -> Result<Self, DeJsonErr>;

    // Provided method
    fn deserialize_json(input: &str) -> Result<Self, DeJsonErr> { ... }
}

Required Methods§

source

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<Self, DeJsonErr>

Provided Methods§

Implementations on Foreign Types§

source§

impl DeJson for i32

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<i32, DeJsonErr>

source§

impl<A, B> DeJson for (A, B)where A: DeJson, B: DeJson,

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<(A, B), DeJsonErr>

source§

impl DeJson for f64

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<f64, DeJsonErr>

source§

impl DeJson for f32

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<f32, DeJsonErr>

source§

impl<T> DeJson for Vec<T>where T: DeJson,

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<Vec<T>, DeJsonErr>

source§

impl<A, B, C, D> DeJson for (A, B, C, D)where A: DeJson, B: DeJson, C: DeJson, D: DeJson,

source§

impl DeJson for i16

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<i16, DeJsonErr>

source§

impl<T> DeJson for Option<T>where T: DeJson,

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<Self, DeJsonErr>

source§

impl<A, B, C> DeJson for (A, B, C)where A: DeJson, B: DeJson, C: DeJson,

source§

fn de_json( s: &mut DeJsonState, i: &mut Chars<'_> ) -> Result<(A, B, C), DeJsonErr>

source§

impl DeJson for u16

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<u16, DeJsonErr>

source§

impl DeJson for usize

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<usize, DeJsonErr>

source§

impl DeJson for bool

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<bool, DeJsonErr>

source§

impl DeJson for u32

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<u32, DeJsonErr>

source§

impl<T> DeJson for Box<T>where T: DeJson,

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<Box<T>, DeJsonErr>

source§

impl DeJson for u64

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<u64, DeJsonErr>

source§

impl<K, V> DeJson for HashMap<K, V>where K: DeJson + Eq + Hash, V: DeJson,

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<Self, DeJsonErr>

source§

impl DeJson for i64

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<i64, DeJsonErr>

source§

impl DeJson for String

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<String, DeJsonErr>

source§

impl<T, const N: usize> DeJson for [T; N]where T: DeJson,

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<Self, DeJsonErr>

source§

impl DeJson for i8

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<i8, DeJsonErr>

source§

impl DeJson for u8

source§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<u8, DeJsonErr>

Implementors§