web_sys/features/
gen_UrlSearchParams.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = URLSearchParams , typescript_type = "URLSearchParams")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `UrlSearchParams` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
14    pub type UrlSearchParams;
15    #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")]
16    #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
21    pub fn new() -> Result<UrlSearchParams, JsValue>;
22    #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")]
23    #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
28    pub fn new_with_str_sequence_sequence(
29        init: &::wasm_bindgen::JsValue,
30    ) -> Result<UrlSearchParams, JsValue>;
31    #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")]
32    #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
37    pub fn new_with_record_from_str_to_str(
38        init: &::js_sys::Object,
39    ) -> Result<UrlSearchParams, JsValue>;
40    #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")]
41    #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
46    pub fn new_with_str(init: &str) -> Result<UrlSearchParams, JsValue>;
47    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = append)]
48    #[doc = "The `append()` method."]
49    #[doc = ""]
50    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/append)"]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
53    pub fn append(this: &UrlSearchParams, name: &str, value: &str);
54    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = delete)]
55    #[doc = "The `delete()` method."]
56    #[doc = ""]
57    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/delete)"]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
60    pub fn delete(this: &UrlSearchParams, name: &str);
61    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = entries)]
62    #[doc = "The `entries()` method."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/entries)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
67    pub fn entries(this: &UrlSearchParams) -> ::js_sys::Iterator;
68    # [wasm_bindgen (catch , method , structural , js_class = "URLSearchParams" , js_name = forEach)]
69    #[doc = "The `forEach()` method."]
70    #[doc = ""]
71    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/forEach)"]
72    #[doc = ""]
73    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
74    pub fn for_each(this: &UrlSearchParams, callback: &::js_sys::Function) -> Result<(), JsValue>;
75    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = get)]
76    #[doc = "The `get()` method."]
77    #[doc = ""]
78    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get)"]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
81    pub fn get(this: &UrlSearchParams, name: &str) -> Option<::alloc::string::String>;
82    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = getAll)]
83    #[doc = "The `getAll()` method."]
84    #[doc = ""]
85    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/getAll)"]
86    #[doc = ""]
87    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
88    pub fn get_all(this: &UrlSearchParams, name: &str) -> ::js_sys::Array;
89    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = has)]
90    #[doc = "The `has()` method."]
91    #[doc = ""]
92    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/has)"]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
95    pub fn has(this: &UrlSearchParams, name: &str) -> bool;
96    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = keys)]
97    #[doc = "The `keys()` method."]
98    #[doc = ""]
99    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/keys)"]
100    #[doc = ""]
101    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
102    pub fn keys(this: &UrlSearchParams) -> ::js_sys::Iterator;
103    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = set)]
104    #[doc = "The `set()` method."]
105    #[doc = ""]
106    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/set)"]
107    #[doc = ""]
108    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
109    pub fn set(this: &UrlSearchParams, name: &str, value: &str);
110    # [wasm_bindgen (catch , method , structural , js_class = "URLSearchParams" , js_name = sort)]
111    #[doc = "The `sort()` method."]
112    #[doc = ""]
113    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/sort)"]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
116    pub fn sort(this: &UrlSearchParams) -> Result<(), JsValue>;
117    # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = values)]
118    #[doc = "The `values()` method."]
119    #[doc = ""]
120    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/values)"]
121    #[doc = ""]
122    #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"]
123    pub fn values(this: &UrlSearchParams) -> ::js_sys::Iterator;
124}