#[non_exhaustive]pub struct SpellCorrectionSpec {
pub mode: Mode,
/* private fields */
}Available on crate features
assistant-service or conversational-search-service or search-service or serving-config-service only.Expand description
The specification for query spell correction.
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.mode: ModeThe mode under which spell correction replaces the original search query. Defaults to Mode.AUTO.
Implementations§
Trait Implementations§
Source§impl Clone for SpellCorrectionSpec
impl Clone for SpellCorrectionSpec
Source§fn clone(&self) -> SpellCorrectionSpec
fn clone(&self) -> SpellCorrectionSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 SpellCorrectionSpec
impl Debug for SpellCorrectionSpec
Source§impl Default for SpellCorrectionSpec
impl Default for SpellCorrectionSpec
Source§fn default() -> SpellCorrectionSpec
fn default() -> SpellCorrectionSpec
Returns the “default value” for a type. Read more
Source§impl Message for SpellCorrectionSpec
impl Message for SpellCorrectionSpec
Source§impl PartialEq for SpellCorrectionSpec
impl PartialEq for SpellCorrectionSpec
impl StructuralPartialEq for SpellCorrectionSpec
Auto Trait Implementations§
impl Freeze for SpellCorrectionSpec
impl RefUnwindSafe for SpellCorrectionSpec
impl Send for SpellCorrectionSpec
impl Sync for SpellCorrectionSpec
impl Unpin for SpellCorrectionSpec
impl UnwindSafe for SpellCorrectionSpec
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