web_sys/features/
gen_Clients.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "Clients",
10 typescript_type = "Clients"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `Clients` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `Clients`*"]
18 pub type Clients;
19 #[wasm_bindgen(method, js_class = "Clients")]
20 #[doc = "The `claim()` method."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `Clients`*"]
25 pub fn claim(this: &Clients) -> ::js_sys::Promise;
26 #[wasm_bindgen(method, js_class = "Clients")]
27 #[doc = "The `get()` method."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/get)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `Clients`*"]
32 pub fn get(this: &Clients, id: &str) -> ::js_sys::Promise;
33 #[wasm_bindgen(method, js_class = "Clients", js_name = "matchAll")]
34 #[doc = "The `matchAll()` method."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `Clients`*"]
39 pub fn match_all(this: &Clients) -> ::js_sys::Promise;
40 #[cfg(feature = "ClientQueryOptions")]
41 #[wasm_bindgen(method, js_class = "Clients", js_name = "matchAll")]
42 #[doc = "The `matchAll()` method."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`, `Clients`*"]
47 pub fn match_all_with_options(
48 this: &Clients,
49 options: &ClientQueryOptions,
50 ) -> ::js_sys::Promise;
51 #[wasm_bindgen(method, js_class = "Clients", js_name = "openWindow")]
52 #[doc = "The `openWindow()` method."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/openWindow)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `Clients`*"]
57 pub fn open_window(this: &Clients, url: &str) -> ::js_sys::Promise;
58}