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