Skip to main content

parse_path

Function parse_path 

Source
pub fn parse_path(
    layout: &StoreLayout,
    path: &str,
) -> Result<ParsedStorePath, SpecError>
Expand description

Decompose a store path into its typed components.

Sibling of validate_pathvalidate_path returns Ok/Err; parse_path returns the actual structure so operators and downstream tooling can inspect it.

§Errors

Returns the same typed errors validate_path does (store-path-not-rooted, store-path-bad-format).