maxcountryman_web_sys/features/
gen_HtmlTitleElement.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTitleElement , typescript_type = "HTMLTitleElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `HtmlTitleElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"]
13    pub type HtmlTitleElement;
14    # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTitleElement" , js_name = text)]
15    #[doc = "Getter for the `text` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"]
20    pub fn text(this: &HtmlTitleElement) -> Result<String, JsValue>;
21    # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTitleElement" , js_name = text)]
22    #[doc = "Setter for the `text` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"]
27    pub fn set_text(this: &HtmlTitleElement, value: &str) -> Result<(), JsValue>;
28}