maxcountryman_web_sys/features/
gen_UrlSearchParams.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = URLSearchParams , typescript_type = "URLSearchParams")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `UrlSearchParams` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
13 pub type UrlSearchParams;
14 #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")]
15 #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
20 pub fn new() -> Result<UrlSearchParams, JsValue>;
21 #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")]
22 #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
27 pub fn new_with_str_sequence_sequence(
28 init: &::wasm_bindgen::JsValue,
29 ) -> Result<UrlSearchParams, JsValue>;
30 #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")]
31 #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
36 pub fn new_with_str(init: &str) -> Result<UrlSearchParams, JsValue>;
37 # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = append)]
38 #[doc = "The `append()` method."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/append)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
43 pub fn append(this: &UrlSearchParams, name: &str, value: &str);
44 # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = delete)]
45 #[doc = "The `delete()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/delete)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
50 pub fn delete(this: &UrlSearchParams, name: &str);
51 # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = get)]
52 #[doc = "The `get()` method."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
57 pub fn get(this: &UrlSearchParams, name: &str) -> Option<String>;
58 # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = getAll)]
59 #[doc = "The `getAll()` method."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/getAll)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
64 pub fn get_all(this: &UrlSearchParams, name: &str) -> ::js_sys::Array;
65 # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = has)]
66 #[doc = "The `has()` method."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/has)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
71 pub fn has(this: &UrlSearchParams, name: &str) -> bool;
72 # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = set)]
73 #[doc = "The `set()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/set)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
78 pub fn set(this: &UrlSearchParams, name: &str, value: &str);
79 # [wasm_bindgen (catch , method , structural , js_class = "URLSearchParams" , js_name = sort)]
80 #[doc = "The `sort()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/sort)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
85 pub fn sort(this: &UrlSearchParams) -> Result<(), JsValue>;
86}