Skip to content

Commit

Permalink
Expose config for QsQueryConfig (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Lebran committed Sep 4, 2023
2 parents 3d35d16 + 60f32db commit 982b841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Actix-web garde wrapper"
readme = "README.md"
keywords = ["garde", "actix", "actix-web", "validation"]
categories = ["web-programming"]
version = "0.1.0"
version = "0.1.1"

authors = ["Netwo <oss@netwo.com>"]
edition = "2021"
Expand Down
5 changes: 5 additions & 0 deletions src/web/qs_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ impl QsQueryConfig {
self.err_handler = Some(Arc::new(f));
self
}

pub fn qs_config(mut self, config: Config) -> Self {
self.qs_config = config;
self
}
}

#[cfg(test)]
Expand Down

0 comments on commit 982b841

Please sign in to comment.