Struct dialectic_tokio_serde_json::Json[][src]

pub struct Json { /* fields omitted */ }

The JSON serialization format.

Implementations

impl Json[src]

pub fn new() -> Self[src]

Construct a new Json serialization format.

pub fn pretty() -> Self[src]

Construct a new Json serialization format which pretty-formats its output.

⚠️ Caution: Pretty-printed JSON serialization is not compatible with line-delimited codecs such as LinesCodec, because pretty-printed JSON contains newlines. Combining the two will result in runtime deserialization failures.

Trait Implementations

impl Clone for Json[src]

impl Copy for Json[src]

impl Debug for Json[src]

impl Default for Json[src]

impl<Input: AsRef<str>> Deserializer<Input> for Json[src]

type Error = Error

The type of errors during deserialization.

impl Serializer for Json[src]

type Error = Error

The type of errors during serialization.

type Output = String

The output format for serialization (e.g. Bytes, String, etc.).

Auto Trait Implementations

impl RefUnwindSafe for Json

impl Send for Json

impl Sync for Json

impl Unpin for Json

impl UnwindSafe for Json

Blanket Implementations

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

impl<'a, T, S> As<'a, Val, T> for S where
    S: Into<T>, 

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

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

impl<'a, T> By<'a, Mut> for T where
    T: 'a + ?Sized

type Type = &'a mut T

The type of Self when called by Convention.

impl<'a, T> By<'a, Ref> for T where
    T: 'a + ?Sized

type Type = &'a T

The type of Self when called by Convention.

impl<'a, T> By<'a, Val> for T

type Type = T

The type of Self when called by Convention.

impl<'a, T> Convert<'a, Mut, Mut> for T where
    T: 'a, 

impl<'a, T> Convert<'a, Mut, Ref> for T where
    T: 'a, 

impl<'a, T> Convert<'a, Mut, Val> for T where
    T: 'a + Clone

impl<'a, T> Convert<'a, Ref, Ref> for T where
    T: 'a, 

impl<'a, T> Convert<'a, Ref, Val> for T where
    T: 'a + Clone

impl<'a, T> Convert<'a, Val, Val> for T

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.