diff --git a/01.workspace/heave/src/lib.rs b/01.workspace/heave/src/lib.rs index 37600ab..89aee4f 100644 --- a/01.workspace/heave/src/lib.rs +++ b/01.workspace/heave/src/lib.rs @@ -10,6 +10,7 @@ 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::eav::T as EAV; pub use crate::trt::from_eav::T as FromEAV; pub use crate::trt::to_eav::T as ToEAV; pub use crate::trt::to_value::T as ToValue; diff --git a/01.workspace/heave/src/trt/eav.rs b/01.workspace/heave/src/trt/eav.rs new file mode 100644 index 0000000..55d0a5d --- /dev/null +++ b/01.workspace/heave/src/trt/eav.rs @@ -0,0 +1,11 @@ +use crate::*; + +/// TODO: INSERT DOCUMENTATION HERE +pub trait T where + Self: FromEAV, + Self: ToEAV, +{ +} + +// #[cfg(test)] +// mod unit_tests {} diff --git a/01.workspace/heave/src/trt/mod.rs b/01.workspace/heave/src/trt/mod.rs index 583b746..c86c5a0 100644 --- a/01.workspace/heave/src/trt/mod.rs +++ b/01.workspace/heave/src/trt/mod.rs @@ -1,3 +1,4 @@ +pub mod eav; pub mod from_eav; pub mod to_eav; pub mod to_value; diff --git a/01.workspace/heave/src/tst/intended_use.rs b/01.workspace/heave/src/tst/intended_use.rs index 43082a4..671a5ff 100644 --- a/01.workspace/heave/src/tst/intended_use.rs +++ b/01.workspace/heave/src/tst/intended_use.rs @@ -7,6 +7,7 @@ mod tests { pub name: String, pub price: u64, } + impl EAV for Product {} impl ToEAV for Product { fn to_eav(self) -> Entity { Entity::default()