Deserialize

Trait Deserialize 

Source
pub trait Deserialize: Sized {
    // Required method
    fn begin(out: &mut Option<Self>) -> &mut dyn Visitor;
}
Expand description

Trait for data structures that can be deserialized from a JSON string.

[Refer to the module documentation for examples.][::de]

Required Methods§

Source

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is:

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor {
    Place::new(out)
}

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Deserialize for bool

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for f32

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for f64

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for i8

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for i16

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for i32

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for i64

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for isize

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for u8

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for u16

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for u32

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for u64

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for ()

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for usize

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl Deserialize for String

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl<A: Deserialize, B: Deserialize> Deserialize for (A, B)

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl<K, V, H> Deserialize for HashMap<K, V, H>
where K: FromStr + Hash + Eq, V: Deserialize, H: BuildHasher + Default,

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl<K: FromStr + Ord, V: Deserialize> Deserialize for BTreeMap<K, V>

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl<T: Deserialize> Deserialize for Option<T>

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl<T: Deserialize> Deserialize for Box<T>

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Source§

impl<T: Deserialize> Deserialize for Vec<T>

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

Implementors§