1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechGrammar , typescript_type = "SpeechGrammar")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `SpeechGrammar` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"]
13     pub type SpeechGrammar;
14     # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = src)]
15     #[doc = "Getter for the `src` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"]
src(this: &SpeechGrammar) -> Result<String, JsValue>20     pub fn src(this: &SpeechGrammar) -> Result<String, JsValue>;
21     # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = src)]
22     #[doc = "Setter for the `src` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"]
set_src(this: &SpeechGrammar, value: &str) -> Result<(), JsValue>27     pub fn set_src(this: &SpeechGrammar, value: &str) -> Result<(), JsValue>;
28     # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = weight)]
29     #[doc = "Getter for the `weight` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"]
weight(this: &SpeechGrammar) -> Result<f32, JsValue>34     pub fn weight(this: &SpeechGrammar) -> Result<f32, JsValue>;
35     # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = weight)]
36     #[doc = "Setter for the `weight` field of this object."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"]
set_weight(this: &SpeechGrammar, value: f32) -> Result<(), JsValue>41     pub fn set_weight(this: &SpeechGrammar, value: f32) -> Result<(), JsValue>;
42     #[wasm_bindgen(catch, constructor, js_class = "SpeechGrammar")]
43     #[doc = "The `new SpeechGrammar(..)` constructor, creating a new instance of `SpeechGrammar`."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/SpeechGrammar)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"]
new() -> Result<SpeechGrammar, JsValue>48     pub fn new() -> Result<SpeechGrammar, JsValue>;
49 }
50