#[non_exhaustive]pub struct ContextSpec {
pub hotwords: Vec<String>,
pub window: Option<u16>,
pub boost: Option<f32>,
pub exclusions: Vec<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hotwords: Vec<String>§window: Option<u16>§boost: Option<f32>§exclusions: Vec<String>Trait Implementations§
Source§impl Clone for ContextSpec
impl Clone for ContextSpec
Source§fn clone(&self) -> ContextSpec
fn clone(&self) -> ContextSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextSpec
impl Debug for ContextSpec
Source§impl PartialEq for ContextSpec
impl PartialEq for ContextSpec
Source§fn eq(&self, other: &ContextSpec) -> bool
fn eq(&self, other: &ContextSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContextSpec
Auto Trait Implementations§
impl Freeze for ContextSpec
impl RefUnwindSafe for ContextSpec
impl Send for ContextSpec
impl Sync for ContextSpec
impl Unpin for ContextSpec
impl UnsafeUnpin for ContextSpec
impl UnwindSafe for ContextSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more