(&self, query: &ListModsQuery)
| 435 | } |
| 436 | |
| 437 | /// Write a catalog entry's `mod.json` (used by dev seeding; writes no artifact, so the |
| 438 | /// seeded entry carries a synthetic `size_bytes` and isn't downloadable). |
| 439 | pub async fn put_metadata(&self, entry: &ModCatalogEntry) -> Result<()> { |
| 440 | let json = serde_json::to_vec_pretty(entry)?; |
| 441 | self.store |
| 442 | .put( |
| 443 | &self.store_path(Self::metadata_path(&entry.mod_id)), |
| 444 | Bytes::from(json).into(), |
no test coverage detected