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!() + } }