nintha / autowired-rs

rust dependency injection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature] functional bean support `Option` return type

nintha opened this issue · comments

Option return type should be well unwarped or other operations.

When the return type is Option<T>

  • if the return value is Some(T), then the bean will be submitted and type name is T
  • if the return value is None, then the bean will not be submitted

The feature has been added, 1c46865