(reader: R)
| 123 | |
| 124 | impl WalltimeMetadata { |
| 125 | pub fn from_reader<R: std::io::Read>(reader: R) -> anyhow::Result<Self> { |
| 126 | serde_json::from_reader(reader).context("Could not parse walltime metadata from JSON") |
| 127 | } |
| 128 | |
| 129 | pub fn save_to<P: AsRef<Path>>(&self, path: P) -> anyhow::Result<()> { |
| 130 | let file = std::fs::File::create(path.as_ref().join("walltime.metadata"))?; |
nothing calls this directly
no outgoing calls
no test coverage detected