How do you guys inject services into handler without cloning?
New to rust trying to figure how to inject a ref to a svc into handler without upsetting the compiler? Do you guys clone it?
Is there a project I can take inspiration from?
Using Axum
Edit:
Another post with same issue for ref
Edit 2
https://github.com/lahen82179/burner-repo/blob/main/src/controller/mod.rs
https://github.com/lahen82179/burner-repo/blob/main/src/services/decoding\_service.rs
https://github.com/lahen82179/burner-repo/blob/main/src/controller/handler.rs
Here uploaded my code here for ref