Skip to main content

load_answers

Function load_answers 

Source
pub fn load_answers<T: DeserializeOwned>(path: &Path) -> Result<T, OpError>
Expand description

Read an answers payload from disk as JSON or YAML. The path extension disambiguates: .json → JSON, .yaml/.yml → YAML. Other extensions fall back to JSON (with a YAML retry on parse failure) so callers can pipe gtc … --schema | jq … > answers.txt without re-extensioning.