Module repository

Source
Expand description

This module provides a generic repository interface for storing and retrieving items.

Structs§

RepositoryItemData
This struct holds metadata about a registered repository item type.

Enums§

RepositoryError
An error resulting from operations on a repository.

Traits§

Repository
This trait represents a generic repository interface, capable of storing and retrieving items using a key-value API.
RepositoryItem
This trait is used to mark types that can be stored in a repository. It should not be implemented manually; instead, users should use the crate::register_repository_item macro to register their item types.

Functions§

validate_registry_name
Validate that the provided name will be a valid identifier at compile time. This is intentionally limited to ensure compatibility with current and future storage backends. For example, SQLite tables must not begin with a number or contain special characters. Valid characters are a-z, A-Z, and underscore (_).