pub struct QueryStringConfig { /* private fields */ }
Expand description
QueryString extractor configuration
use axum::{Router, Extension, http::StatusCode};
use serde_querystring_axum::{ParseMode, QueryStringConfig};
let app = Router::new().layer(Extension(
QueryStringConfig::new(ParseMode::Brackets)
.ehandler(|err| {
(StatusCode::BAD_REQUEST, err.to_string()) // return type should impl IntoResponse
}),
));
Implementations§
Trait Implementations§
Source§impl Clone for QueryStringConfig
impl Clone for QueryStringConfig
Source§fn clone(&self) -> QueryStringConfig
fn clone(&self) -> QueryStringConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for QueryStringConfig
impl !RefUnwindSafe for QueryStringConfig
impl Send for QueryStringConfig
impl Sync for QueryStringConfig
impl Unpin for QueryStringConfig
impl !UnwindSafe for QueryStringConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more