Trait portaldi_core::traits::DIPortal
source · pub trait DIPortal {
fn create_for_di(container: &DIContainer) -> Self;
fn di_on(container: &DIContainer) -> DI<Self>
where
Self: Sized + DITarget,
{ ... }
fn di() -> DI<Self>
where
Self: Sized + DITarget,
{ ... }
}Expand description
Add di methods for DI target types.
Required Methods§
sourcefn create_for_di(container: &DIContainer) -> Self
fn create_for_di(container: &DIContainer) -> Self
Create new instance for DI.