doc: add entity_state doc comments
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
|
/// Represents the state of an entity within the catalog.
|
||||||
#[derive(Debug, Default, PartialEq, PartialOrd, Eq, Ord, Clone, Copy, Hash)]
|
#[derive(Debug, Default, PartialEq, PartialOrd, Eq, Ord, Clone, Copy, Hash)]
|
||||||
pub enum E {
|
pub enum E {
|
||||||
|
/// The entity is newly created and has not been persisted.
|
||||||
#[default]
|
#[default]
|
||||||
New,
|
New,
|
||||||
|
/// The state of the entity is unknown.
|
||||||
Unknown,
|
Unknown,
|
||||||
|
/// The entity has been loaded from the database.
|
||||||
Loaded,
|
Loaded,
|
||||||
|
/// The entity is marked for deletion.
|
||||||
ToDelete,
|
ToDelete,
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user