feat: add traits to transform self from and to eav
This commit is contained in:
@@ -10,3 +10,5 @@ mod tst;
|
||||
pub use crate::str::attribute::O as Attribute;
|
||||
pub use crate::str::entity::O as Entity;
|
||||
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;
|
||||
|
||||
5
01.workspace/heave/src/trt/from_eav.rs
Normal file
5
01.workspace/heave/src/trt/from_eav.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use crate::*;
|
||||
|
||||
pub trait T {
|
||||
fn from_eav(entity: Entity) -> Self;
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
|
||||
pub mod from_eav;
|
||||
pub mod to_eav;
|
||||
|
||||
5
01.workspace/heave/src/trt/to_eav.rs
Normal file
5
01.workspace/heave/src/trt/to_eav.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use crate::*;
|
||||
|
||||
pub trait T {
|
||||
fn to_eav(self) -> Entity;
|
||||
}
|
||||
Reference in New Issue
Block a user