|
handler function : async fn report<C: ServerContext>(State(ctx): State<Arc<C>>) -> Result<String, Error> {
...
} |
Answered by
calavera
Feb 5, 2024
Replies: 1 comment
|
You need to extract it from the |
0 replies
Answer selected by
holicc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to extract it from the
Requestobject. Here's an example: https://github.com/awslabs/aws-lambda-rust-runtime/blob/main/examples/http-axum-middleware/src/main.rs#L18-L24