web_sys/features/
gen_Presentation.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 = Presentation , typescript_type = "Presentation")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `Presentation` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `Presentation`*"]
14    pub type Presentation;
15    #[cfg(feature = "PresentationRequest")]
16    # [wasm_bindgen (structural , method , getter , js_class = "Presentation" , js_name = defaultRequest)]
17    #[doc = "Getter for the `defaultRequest` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"]
22    pub fn default_request(this: &Presentation) -> Option<PresentationRequest>;
23    #[cfg(feature = "PresentationRequest")]
24    # [wasm_bindgen (structural , method , setter , js_class = "Presentation" , js_name = defaultRequest)]
25    #[doc = "Setter for the `defaultRequest` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"]
30    pub fn set_default_request(this: &Presentation, value: Option<&PresentationRequest>);
31    #[cfg(feature = "PresentationReceiver")]
32    # [wasm_bindgen (structural , method , getter , js_class = "Presentation" , js_name = receiver)]
33    #[doc = "Getter for the `receiver` field of this object."]
34    #[doc = ""]
35    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/receiver)"]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationReceiver`*"]
38    pub fn receiver(this: &Presentation) -> Option<PresentationReceiver>;
39}