web_sys/features/
gen_SpeechRecognitionResult.rs1#![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 = SpeechRecognitionResult , typescript_type = "SpeechRecognitionResult")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SpeechRecognitionResult` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"]
14 pub type SpeechRecognitionResult;
15 # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = length)]
16 #[doc = "Getter for the `length` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/length)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"]
21 pub fn length(this: &SpeechRecognitionResult) -> u32;
22 # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = isFinal)]
23 #[doc = "Getter for the `isFinal` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/isFinal)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"]
28 pub fn is_final(this: &SpeechRecognitionResult) -> bool;
29 #[cfg(feature = "SpeechRecognitionAlternative")]
30 # [wasm_bindgen (method , structural , js_class = "SpeechRecognitionResult" , js_name = item)]
31 #[doc = "The `item()` method."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/item)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`, `SpeechRecognitionResult`*"]
36 pub fn item(this: &SpeechRecognitionResult, index: u32) -> SpeechRecognitionAlternative;
37 #[cfg(feature = "SpeechRecognitionAlternative")]
38 #[wasm_bindgen(
39 method,
40 structural,
41 js_class = "SpeechRecognitionResult",
42 indexing_getter
43 )]
44 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
45 #[doc = ""]
46 #[doc = ""]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`, `SpeechRecognitionResult`*"]
49 pub fn get(this: &SpeechRecognitionResult, index: u32) -> Option<SpeechRecognitionAlternative>;
50}