pub struct SpeechRecognitionResult {
pub handle: SmartHandle<SPXRESULTHANDLE>,
pub result_id: String,
pub reason: ResultReason,
pub text: String,
pub duration: String,
pub offset: String,
pub properties: PropertyCollection,
}
Expand description
Represents speech recognition result contained within callback event SpeechRecognitionEvent.
Fields
handle: SmartHandle<SPXRESULTHANDLE>
result_id: String
reason: ResultReason
text: String
duration: String
offset: String
properties: PropertyCollection
Implementations
sourceimpl SpeechRecognitionResult
impl SpeechRecognitionResult
pub fn from_handle(handle: SPXRESULTHANDLE) -> Result<SpeechRecognitionResult>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpeechRecognitionResult
impl Send for SpeechRecognitionResult
impl !Sync for SpeechRecognitionResult
impl Unpin for SpeechRecognitionResult
impl UnwindSafe for SpeechRecognitionResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more