Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to serialize/deserialize Vec<Event> in actix-web? #211

Open
Lorry1123 opened this issue Jun 8, 2023 · 1 comment
Open

How to serialize/deserialize Vec<Event> in actix-web? #211

Lorry1123 opened this issue Jun 8, 2023 · 1 comment

Comments

@Lorry1123
Copy link

It seems that there is no impl Responder for Vec<Event> nor impl FromRequest for Vec<Event> in actix feature, but I did find Vec<Event> support in reqwest feature.
Did I miss any thing?

Here's the code:

#[get("/test")]
async fn test(events: Vec<Event>) -> Result<Vec<Event>> {
    Ok(events)
}
@ozabalaferrera
Copy link

Hi, I'm not sure if this still matters to you, but you're correct. For the current version of cloudevents-sdk (0.7.0) there is no batch-mode support in the actix binding. This should be relatively easy to add. I will try to improve batch-mode support after my current PR is accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants