Crate confql_data_resolver

Source
Expand description

Filesystem yaml data resolvers.

Structs§

DataPath
Represents a position in the data directory when resolving data.
DataResolver
Clients interact with this struct for data resolution operations. In particular, this forms an important part of the juniper::Context generated by the procedural macros. Essentially this holds a PathBuf pointing at the data root directory, and exposes a get method for trying to resolve a generic type at a specified data address under that root directory.

Enums§

DataResolverError
Data resolution and value manipulation errors

Traits§

Merge
Define methods for
ResolveValue
This trait, when implemented on a type, attaches methods for retrieving a serde_yaml::Value representation of that type. For primitives, a default impl will do. For structs, you will mostly specify the merge_properties function in a very straightforward way, i.e.