[][src]Struct nu_json::value::Serializer

pub struct Serializer { /* fields omitted */ }

Create a serde::Serializer that serializes a Serializee into a Value.

Implementations

impl Serializer[src]

pub fn new() -> Serializer[src]

Construct a new Serializer.

pub fn unwrap(self) -> Value[src]

Unwrap the Serializer and return the Value.

Trait Implementations

impl Default for Serializer[src]

impl Serializer for Serializer[src]

type Error = Error

The error type that can be returned if some error occurs during serialization.

type SeqState = Vec<Value>

A state object that is initialized by serialize_seq, passed to serialize_seq_elt, and consumed by serialize_seq_end. Use () if no state is required. Read more

type TupleState = Vec<Value>

A state object that is initialized by serialize_tuple, passed to serialize_tuple_elt, and consumed by serialize_tuple_end. Use () if no state is required. Read more

type TupleStructState = Vec<Value>

A state object that is initialized by serialize_tuple_struct, passed to serialize_tuple_struct_elt, and consumed by serialize_tuple_struct_end. Use () if no state is required. Read more

type TupleVariantState = TupleVariantState

A state object that is initialized by serialize_tuple_variant, passed to serialize_tuple_variant_elt, and consumed by serialize_tuple_variant_end. Use () if no state is required. Read more

type MapState = MapState

A state object that is initialized by serialize_map, passed to serialize_map_elt, and consumed by serialize_map_end. Use () if no state is required. Read more

type StructState = MapState

A state object that is initialized by serialize_struct, passed to serialize_struct_elt, and consumed by serialize_struct_end. Use () if no state is required. Read more

type StructVariantState = StructVariantState

A state object that is initialized by serialize_struct_variant, passed to serialize_struct_variant_elt, and consumed by serialize_struct_variant_end. Use () if no state is required. Read more

Auto Trait Implementations

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.