Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct AppState<'a> {
- services: &'a AppServices<'a>,
- }
- impl<'a> AppState<'a> {
- pub fn new() -> Self {
- AppState {
- services: &AppServices { id: None },
- }
- }
- }
- struct AppServices<'a> {
- id: Option<&'a IdService<'a>>,
- }
- struct IdService<'a> {
- name: String,
- state: &'a AppState<'a>,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement