Skip to main content

Module dyn_access

Module dyn_access 

Source
Expand description

Port of internal/dyn: path-based traversal, type conversion, and related helpers for serde_json::Value/serde_yaml::Value trees produced by JSON or YAML decoding (the Go original operates on map[string]any / []any; here we operate on a serde_json::Value tree, which is the closest Rust equivalent to Go’s dynamically-typed decode result).

Enums§

DynError
HelmStep
One segment of a parsed Helm-style path: either a map key or a slice index.

Functions§

access
Walks data along a Helm-style path and returns the leaf value.
parse_helm_path
Parses a Helm-style dotted path into a slice of steps. A backslash escapes a literal dot; trailing [N] bracket notation on a segment produces slice-index steps.