(path: &Path)
| 265 | } |
| 266 | |
| 267 | pub fn load_access_record(path: &Path) -> crate::Result<FullAccessRecord> { |
| 268 | let raw = load_and_check_version(path)?; |
| 269 | Ok(serde_json::from_str(&raw)?) |
| 270 | } |
| 271 | |
| 272 | pub fn store_access_record<R: ?Sized + Serialize, P: AsRef<Path>>( |
| 273 | record: &R, |
no test coverage detected