doc: add entity_state doc comments

This commit is contained in:
2025-10-09 15:20:09 +02:00
parent 0eb0422443
commit 4c964efd42

View File

@@ -1,8 +1,13 @@
/// Represents the state of an entity within the catalog.
#[derive(Debug, Default, PartialEq, PartialOrd, Eq, Ord, Clone, Copy, Hash)]
pub enum E {
/// The entity is newly created and has not been persisted.
#[default]
New,
/// The state of the entity is unknown.
Unknown,
/// The entity has been loaded from the database.
Loaded,
/// The entity is marked for deletion.
ToDelete,
}