From 4ff1a856471a6b0ef872599f08d037c0f00f814d Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Mon, 29 Sep 2025 11:47:25 +0200 Subject: [PATCH] wip: add loaded and persisted flags with function placeholders --- 01.workspace/heave/src/str/entity.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/01.workspace/heave/src/str/entity.rs b/01.workspace/heave/src/str/entity.rs index e1a57f0..3874934 100644 --- a/01.workspace/heave/src/str/entity.rs +++ b/01.workspace/heave/src/str/entity.rs @@ -2,6 +2,8 @@ use crate::*; #[derive(Debug, Default, PartialEq, Clone)] pub struct O { + pub persisted: bool, + pub loaded: bool, pub id: String, pub class: String, pub attributes: std::collections::HashMap, @@ -57,4 +59,10 @@ impl O { let value = self.value_of(id).unwrap(); T::from(value.clone()) } + pub fn persist(&self) { + todo!() + } + pub fn load(_id: &str) -> Self { + todo!() + } }