9 releases

0.3.0 Feb 9, 2025
0.3.0-beta.0 Aug 8, 2024
0.2.0 Feb 1, 2023
0.1.0 Dec 28, 2022
0.0.7 Nov 22, 2020

#1435 in Encoding

Download history 25/week @ 2024-10-29 33/week @ 2024-11-05 27/week @ 2024-11-12 31/week @ 2024-11-19 11/week @ 2024-11-26 41/week @ 2024-12-03 54/week @ 2024-12-10 111/week @ 2024-12-17 25/week @ 2024-12-24 95/week @ 2024-12-31 113/week @ 2025-01-07 110/week @ 2025-01-14 100/week @ 2025-01-21 25/week @ 2025-01-28 179/week @ 2025-02-04 171/week @ 2025-02-11

490 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

~15–26MB
~445K SLoC