Expand description
YAML namespace implementation for handling structured YAML configuration data.
This module provides the Yaml
struct which wraps a serde_yaml::Value
and
provides methods for working with YAML-formatted configuration data. It supports
deserialization into custom types and maintains the original YAML structure.
§Usage
The Yaml
struct is typically created automatically by the namespace detection
system when a namespace name contains a .yml
or .yaml
extension, but can also be
created directly from any serde_yaml::Value
.
§Examples
ⓘ
use serde_yaml;
use apollo_client::namespace::yaml::Yaml;
let yaml_data = serde_yaml::from_str("name: MyApp\nversion: 1.0.0").unwrap();
let yaml_namespace = Yaml::from(yaml_data);
Structs§
- Yaml
- A wrapper around
serde_yaml::Value
for YAML-formatted configuration data.
Enums§
- Error
- Comprehensive error types that can occur when working with YAML namespaces.