[][src]Struct serde_json_wasm::de::Deserializer

pub struct Deserializer<'b> { /* fields omitted */ }

Deserializer will parse serde-json-wasm flavored JSON into a serde-annotated struct

Trait Implementations

impl<'a, 'de> Deserializer<'de> for &'a mut Deserializer<'de>[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Read more

fn deserialize_any<V>(self, _visitor: V) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Unsupported. We rely on typed deserialization methods, even if a JSON has enough type information to detect types in many cases.

See https://serde.rs/impl-deserialize.html to learn more about the differentiation between deserialize_{type} and deserialize_any.

fn deserialize_bytes<V>(self, _visitor: V) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Unsupported

fn deserialize_byte_buf<V>(self, _visitor: V) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Unsupported

fn deserialize_unit<V>(self, _visitor: V) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Unsupported. Use a more specific deserialize_* method

fn deserialize_unit_struct<V>(
    self,
    _name: &'static str,
    _visitor: V
) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Unsupported. Use a more specific deserialize_* method

fn deserialize_newtype_struct<V>(
    self,
    _name: &'static str,
    visitor: V
) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Unsupported. We can’t parse newtypes because we don’t know the underlying type.

fn deserialize_map<V>(self, _visitor: V) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Unsupported. Can’t make an arbitrary-sized map in no-std. Use a struct with a known format, or implement a custom map deserializer / visitor: https://serde.rs/deserialize-map.html

fn deserialize_ignored_any<V>(self, visitor: V) -> Result<V::Value> where
    V: Visitor<'de>, 
[src]

Used to throw out fields from JSON objects that we don’t want to keep in our structs.

Auto Trait Implementations

impl<'b> RefUnwindSafe for Deserializer<'b>

impl<'b> Send for Deserializer<'b>

impl<'b> Sync for Deserializer<'b>

impl<'b> Unpin for Deserializer<'b>

impl<'b> UnwindSafe for Deserializer<'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.