Skip to main content

Injectable

Attribute Macro Injectable 

Source
#[Injectable]
Expand description

#[Injectable] — turn a struct into a zero-lock DI provider.

Registers the type in the frozen &'static container so it can be resolved via Inject<T> from controllers, gateways, and other providers.