Struct serde_transcode::Transcoder [] [src]

pub struct Transcoder<D>(_);

A Serde transcoder.

In most cases, the transcode function should be used instead of this type.

Note

Unlike traditional serializable types, Transcoder's Serialize implementation is not idempotent, as it advances the state of its internal Deserializer. It should only ever be serialized once.

Methods

impl<'de, D> Transcoder<D> where
    D: Deserializer<'de>, 
[src]

Constructs a new Transcoder.

Trait Implementations

impl<'de, D> Serialize for Transcoder<D> where
    D: Deserializer<'de>, 
[src]

Serialize this value into the given Serde serializer. Read more