Crate yamlpath

Source
Expand description

Comment and format-preserving YAML path queries.

This is not “XPath but for YAML”. If you need a generic object query language that doesn’t capture exact parse spans or comments, then you probably want an implementation of JSONPath or something like jq.

Structs§

Document
Represents a queryable YAML document.
Feature
Represents the result of a successful query.
Location
Represents the concrete location of some YAML syntax.
Query
A query into some YAML document.
QueryBuilder
A builder for Query objects.

Enums§

Component
A single Query component.
FeatureKind
Describes the feature’s kind, i.e. whether it’s a block/flow aggregate or a scalar value.
QueryError
Possible errors when performing YAML path queries.