Function di::zero_or_one_with_key
source · pub fn zero_or_one_with_key<TKey, TSvc: Any + ?Sized>() -> ServiceDependencyAvailable on crate feature
builder only.Expand description
Creates a new keyed ServiceDependency with a cardinality of zero or one (0:1).