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