7 releases

0.2.0 Feb 1, 2023
0.1.0 Dec 28, 2022
0.1.0-beta.2 Aug 15, 2022
0.0.8 Dec 8, 2020
0.0.7 Nov 22, 2020

#1669 in Encoding

Download history 259/week @ 2023-11-24 382/week @ 2023-12-01 186/week @ 2023-12-08 462/week @ 2023-12-15 40/week @ 2023-12-22 252/week @ 2023-12-29 649/week @ 2024-01-05 409/week @ 2024-01-12 417/week @ 2024-01-19 379/week @ 2024-01-26 59/week @ 2024-02-02 79/week @ 2024-02-09 32/week @ 2024-02-16 47/week @ 2024-02-23 61/week @ 2024-03-01 79/week @ 2024-03-08

234 downloads per month
Used in zero4rs

MIT/Apache

97KB
2.5K SLoC

serde-querystring for actix-web

This crate provides an extractor for serde-querystring which can be used in place of the actix-web::Query extractor.

use serde::Deserialize;
use serde_querystring_actix::QueryString;

#[derive(Deserialize)]
pub struct AuthRequest {
   id: u64,
   scopes: Vec<u64>,
}

// In your handler
async fn index(QueryString(info): QueryString<AuthRequest>) -> String {
    format!("Authorization request for client with id={} and type={:?}!", info.id, info.scopes)
}

Dependencies

~17–31MB
~540K SLoC