(&self, id: &ExternalId)
| 191 | } |
| 192 | |
| 193 | pub fn change(&self, id: &ExternalId) -> Result<activity::Change> { |
| 194 | let result = self.find_blob_by_filename(&id.change_filename()?)?; |
| 195 | match result { |
| 196 | Some(blob) => Ok(blob.try_into()?), |
| 197 | None => Err(Error::NotFound(format!("not found: {id}"))), |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | pub fn duplicate(&self) -> Result<Self> { |
| 202 | Ok(Self { |
no test coverage detected