pub fn parse_zimagefile(content: &str) -> Result<ZImage>Expand description
Parse and validate a ZImagefile from its YAML content.
This performs two phases:
- Deserialization — YAML string into
ZImageviaserde_yaml. - Validation — semantic rules that serde annotations cannot enforce.
§Errors
Returns BuildError::ZImagefileParse for malformed YAML and
BuildError::ZImagefileValidation for semantic rule violations.