Context #58
-
How we can use context if is a struct with more than one property like : pub struct Ctx {
token: String,
cookies: Cookies,
....etc
} |
Beta Was this translation helpful? Give feedback.
Answered by
oscartbeaumont
Sep 26, 2022
Replies: 1 comment
-
Just do what you send above and it will work. If your stuck on using it, do something like |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
oscartbeaumont
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just do what you send above and it will work.
If your stuck on using it, do something like
let router = rspc::Router::<Ctx>::new()
.