We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2047161 commit d7412b6Copy full SHA for d7412b6
README.md
@@ -16,12 +16,13 @@ fn main() {
16
let qs = QueryString::new()
17
.with_value("q", "apple")
18
.with_value("tasty", true)
19
+ .with_value("weight", 70.0)
20
.with_opt_value("color", None::<String>)
21
.with_opt_value("category", Some("fruits and vegetables?"));
22
23
assert_eq!(
24
format!("https://example.com/{qs}"),
- "https://example.com/?q=apple&tasty=true&category=fruits%20and%20vegetables?&tasty=true"
25
+ "https://example.com/?q=apple&tasty=true&weight=70.0&category=fruits%20and%20vegetables?&tasty=true"
26
);
27
}
28
```
0 commit comments