From 25a39ce54c77fa9a56045c5283be7054f05c7cdb Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Tue, 11 Nov 2025 11:04:09 +0100 Subject: [PATCH] doc: update documentation of catalog.insert_many --- 01.workspace/heave/src/imp/catalog_insert_many.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/01.workspace/heave/src/imp/catalog_insert_many.rs b/01.workspace/heave/src/imp/catalog_insert_many.rs index ae0020f..b65513c 100644 --- a/01.workspace/heave/src/imp/catalog_insert_many.rs +++ b/01.workspace/heave/src/imp/catalog_insert_many.rs @@ -14,6 +14,11 @@ impl Catalog { /// # Arguments /// /// * `objects` - A vector of objects to insert or update. + /// + /// # Errors + /// + /// Returns `Err(FailedTo)` if any of the underlying `upsert` operations fail. + /// This could be due to issues like an object not having a valid ID. pub fn insert_many(&mut self, objects: Vec) -> Result<(), FailedTo> { for object in objects { self.upsert(object)?;