(&self, collection: Arc<Collection>)
| 1337 | /// inserts a collection into the collections map |
| 1338 | #[allow(dead_code)] |
| 1339 | pub fn insert_collection(&self, collection: Arc<Collection>) -> Result<(), WaCustomError> { |
| 1340 | self.inner_collections |
| 1341 | .insert(collection.meta.name.to_owned(), collection); |
| 1342 | Ok(()) |
| 1343 | } |
| 1344 | |
| 1345 | /// Returns the `Collection` by collection's name |
| 1346 | /// |
no test coverage detected