Expand description
Improved YAML Hash
If the YAML data you’re working with is well-defined and you want to write the necessary types, you
should use serde and serde_yaml.
Otherwise, yaml_rust2 provides a foundation for working with varied YAML data or when you don’t
want to write the necessary types.
This crate provides the YamlHash struct, which is a wrapper for yaml_rust2::yaml::Hash, and
supports some additional capabilities:
- Convert from
&strviaimpl From<&str> - Convert to
Stringviaimpl Display - Get a value for a dotted key as a
YamlHashoryaml_rust2::Yamlviagetandget_yaml; return the root hash if the key is"". - Merge a
YamlHashwith anotherYamlHash, YAML hash string, or YAML hash file to create a newYamlHashviamerge,merge_str, ormerge_file
Structs§
- Yaml
Hash - Improved YAML Hash
Enums§
- Yaml
- A YAML node is stored as this
Yamlenumeration, which provides an easy way to access your YAML document.