(reader: R)
| 73 | |
| 74 | impl WalltimeMetadata { |
| 75 | pub fn from_reader<R: std::io::Read>(reader: R) -> anyhow::Result<Self> { |
| 76 | serde_json::from_reader(reader).context("Could not parse walltime metadata from JSON") |
| 77 | } |
| 78 | |
| 79 | pub fn save_to<P: AsRef<Path>>(&self, path: P) -> anyhow::Result<()> { |
| 80 | let file = std::fs::File::create(path.as_ref().join("walltime.metadata"))?; |
nothing calls this directly
no outgoing calls
no test coverage detected