Type Definition yew::format::Text[][src]

type Text = Result<String, Error>;
Expand description

A representation of a value which can be stored and restored as a text.

Some formats are binary only and can’t be serialized to or deserialized from Text. Attempting to do so will return an Err(FormatError).

Trait Implementations

impl<'a, T> From<Bincode<&'a T>> for Text where
    T: Serialize
[src]

fn from(value: Bincode<&'a T>) -> Text[src]

Performs the conversion.

impl<'a, T> From<Cbor<&'a T>> for Text where
    T: Serialize
[src]

fn from(value: Cbor<&'a T>) -> Text[src]

Performs the conversion.

impl<'a, T> From<Json<&'a T>> for Text where
    T: Serialize
[src]

fn from(value: Json<&'a T>) -> Text[src]

Performs the conversion.

impl<'a, T> From<MsgPack<&'a T>> for Text where
    T: Serialize
[src]

fn from(value: MsgPack<&'a T>) -> Text[src]

Performs the conversion.

impl<'a, T> From<Toml<&'a T>> for Text where
    T: Serialize
[src]

fn from(value: Toml<&'a T>) -> Text[src]

Performs the conversion.

impl<'a, T> From<Yaml<&'a T>> for Text where
    T: Serialize
[src]

fn from(value: Yaml<&'a T>) -> Text[src]

Performs the conversion.