From 5a15a018ab71010bd87b8712b0e8f77475c21454 Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Tue, 11 Nov 2025 11:13:01 +0100 Subject: [PATCH] doc: update documentation of catalog.load_by_id --- 01.workspace/heave/src/imp/catalog_load_by_id.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/01.workspace/heave/src/imp/catalog_load_by_id.rs b/01.workspace/heave/src/imp/catalog_load_by_id.rs index f0268e9..a6aefa6 100644 --- a/01.workspace/heave/src/imp/catalog_load_by_id.rs +++ b/01.workspace/heave/src/imp/catalog_load_by_id.rs @@ -20,6 +20,11 @@ impl Catalog { /// # Arguments /// /// * `id` - The ID of the entity to load. + /// + /// # Errors + /// + /// Returns `Err(FailedTo::LoadFromDB)` if there is an issue loading the entity + /// from the database. pub fn load_by_id(&mut self, id: &str) -> Result<(), FailedTo> { let path = path::Path::new(&self.path); self.on_items(|items| {