Skip to main content

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