[][src]Struct conjure_serde::json::ClientDeserializer

pub struct ClientDeserializer<R>(_);

A serde JSON deserializer appropriate for use by Conjure clients.

In contrast to serde_json, the f32 and f64 types can be deserialized from the strings "Infinity", "-Infinity", and "NaN", and bytes are deserialized from base64 encoded strings. Unknown object fields are ignored.

Methods

impl<R> ClientDeserializer<IoRead<R>> where
    R: Read
[src]

pub fn from_reader(reader: R) -> ClientDeserializer<IoRead<R>>[src]

Creates a Conjure JSON client deserializer from an io::Read.

impl<'a> ClientDeserializer<SliceRead<'a>>[src]

pub fn from_slice(bytes: &'a [u8]) -> ClientDeserializer<SliceRead<'a>>[src]

Creates a Conjure JSON client deserializer from a &[u8].

impl<'a> ClientDeserializer<StrRead<'a>>[src]

pub fn from_str(s: &'a str) -> ClientDeserializer<StrRead<'a>>[src]

Creates a Conjure JSON client deserializer from a &str.

impl<'de, R> ClientDeserializer<R> where
    R: Read<'de>, 
[src]

pub fn end(&mut self) -> Result<(), Error>[src]

Validates that the input stream is at the end or that it only has trailing whitespace.

Trait Implementations

impl<'a, 'de, R> Deserializer<'de> for &'a mut ClientDeserializer<R> where
    R: Read<'de>, 
[src]

type Error = Error

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

Auto Trait Implementations

impl<R> Send for ClientDeserializer<R> where
    R: Send

impl<R> Sync for ClientDeserializer<R> where
    R: Sync

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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