Crate yamlpath

Source
Expand description

Comment and format-preserving YAML path routes.

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

Macros§

route
Convenience builder for constructing a Route.

Structs§

Document
Represents a queryable YAML document.
Feature
Represents the result of a successful route.
Location
Represents the concrete location of some YAML syntax.
Route
A route into some YAML document.

Enums§

Component
A single Route 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 routes.