pub trait IocControllable {
// Required method
fn from_ioc_container(
container: &IocContainer,
scope: Option<&ScopeId>,
) -> Result<Self, String>
where Self: Sized;
}
Expand description
Trait for controllers that can be created from IoC container
Required Methods§
Sourcefn from_ioc_container(
container: &IocContainer,
scope: Option<&ScopeId>,
) -> Result<Self, String>where
Self: Sized,
fn from_ioc_container(
container: &IocContainer,
scope: Option<&ScopeId>,
) -> Result<Self, String>where
Self: Sized,
Create controller instance with dependencies resolved from IoC container