feat: add traits to transform self from and to eav

This commit is contained in:
2025-09-27 07:35:53 +02:00
parent 58641d7197
commit 1786c9104f
4 changed files with 14 additions and 1 deletions

View File

@@ -10,3 +10,5 @@ mod tst;
pub use crate::str::attribute::O as Attribute; pub use crate::str::attribute::O as Attribute;
pub use crate::str::entity::O as Entity; pub use crate::str::entity::O as Entity;
pub use crate::str::value::E as Value; pub use crate::str::value::E as Value;
pub use crate::trt::from_eav::T as FromEAV;
pub use crate::trt::to_eav::T as ToEAV;

View File

@@ -0,0 +1,5 @@
use crate::*;
pub trait T {
fn from_eav(entity: Entity) -> Self;
}

View File

@@ -1 +1,2 @@
pub mod from_eav;
pub mod to_eav;

View File

@@ -0,0 +1,5 @@
use crate::*;
pub trait T {
fn to_eav(self) -> Entity;
}