doc: update ducomentation of catalog.load_by_filter

This commit is contained in:
2025-11-11 11:14:00 +01:00
parent 5a15a018ab
commit 7a250201b3

View File

@@ -19,6 +19,15 @@ impl Catalog {
/// state `EntityState::Loaded`.
/// - Any existing in-memory entities with matching IDs are replaced.
/// - **Database State:** Unchanged.
///
/// # Arguments
///
/// * `filter` - The `Filter` to apply when loading entities.
///
/// # Errors
///
/// Returns `Err(FailedTo::LoadFromDB)` if there is an issue loading entities
/// from the database based on the provided filter.
pub fn load_by_filter(&mut self, filter: &Filter) -> Result<(), FailedTo> {
let path = path::Path::new(&self.path);
self.on_items(|items| {