Skip to main content

parse_package_version

Function parse_package_version 

Source
pub fn parse_package_version(
    workflow_type: &str,
    version: &PackageVersion,
) -> Result<ContentHash, EngineError>
Expand description

Parses a durably recorded package version back to a typed content hash.

ยงErrors

Returns EngineError::Load naming the workflow type and the malformed version text when the recorded value is not a canonical content hash.