Skip to main content

GitBranchReadSchemaFileFn

Type Alias GitBranchReadSchemaFileFn 

Source
pub type GitBranchReadSchemaFileFn = fn(gitdir: &Path, name: &str, version: &str, rel: &str) -> Result<Option<Vec<u8>>, BackendError>;
Expand description

Read one file from a sealed schema package on the workspace’s __MEMSTEAD:schemas/<name>@<version>/ ref. Ok(None) when the ref, package, or file is absent — absence is a normal state (the install-provenance stamp only exists for path-sourced installs). Read-only; the authoring-drift health axis is the consumer.