Skip to main content

read_node_opt

Function read_node_opt 

Source
pub fn read_node_opt(paths: &RunPaths, node_id: &NodeId) -> Result<Option<Node>>
Expand description

Read and schema-validate one node, returning None if absent.

A present node whose body id or run_id does not match where it lives is an error, not None: _opt covers a missing file, not a corrupt one.