contained

When objects are registered into a component container, this annotation marks in which sub-container it is required to store.

This function is a convenince function to automatically infer required types for underlying annotation.

@safe
contained
(
string id
)

Parameters

id string

identity of container where to store the object.

Meta