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 supporting either varied YAML data or in
instances where 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 [
&str] viaimpl From<&str> - Convert to [
String] viaimpl Display - Get a value for a dotted key as a [
YamlHash] or [yaml_rust2::Yaml] via [get][YamlHash::get], [get_yaml][YamlHash::get_yaml] - Merge a [
YamlHash] with another [YamlHash] or a YAML hash string to create a new [YamlHash] via [merge][YamlHash::merge], [merge_str][YamlHash::merge_str]