Last active
January 11, 2020 15:45
-
-
Save trimoq/86eee416ed0f9aee0128f7d13fe2d00b to your computer and use it in GitHub Desktop.
The UserService having a trait object of UserRepository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct UserService { | |
user_repo: Box<dyn UserRepository> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment