Skip to content

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

@Lorry1123

Description

@Lorry1123

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions