#[provider]Expand description
Generate a [DIProvider] or [AsyncDIProvider] implementation. (attribute macro)
This attribute must be on DIPortal or [AsyncDIPortal] impl block.
ⓘ
trait HogeI {}
struct Hoge {}
// When you needs manual creation logic, define DIPortal implementation.
#[portaldi::provider(HogeI)] // HogeIProvider will be generated.
impl DIPortal for Hoge {
...
}