pub fn read_fn(as_type: &impl AsType) -> Result<String, Error>