Crate serde_yaml [] [src]

Structs

Error

This type represents all possible errors that can occur when serializing or deserializing YAML data.

Enums

Value

Represents any valid YAML value.

Functions

from_iter

Deserialize an instance of type T from an iterator over bytes of YAML.

from_reader

Deserialize an instance of type T from an IO stream of YAML.

from_slice

Deserialize an instance of type T from bytes of YAML text.

from_str

Deserialize an instance of type T from a string of YAML text.

from_value

Interpret a serde_yaml::Value as an instance of type T.

to_string

Serialize the given data structure as a String of YAML.

to_value

Convert a T into serde_yaml::Value which is an enum that can represent any valid YAML data.

to_vec

Serialize the given data structure as a YAML byte vector.

to_writer

Serialize the given data structure as YAML into the IO stream.

Type Definitions

Mapping

A YAML mapping in which the keys and values are both serde_yaml::Value.

Result

Alias for a Result with the error type serde_yaml::Error.

Sequence

A YAML sequence in which the elements are serde_yaml::Value.