pub enum SpelledQuerySegment {
Original(String),
Replaced(String),
}Expand description
Represents a segment of the spelled query from the ESpell API
Each segment is either an original (unchanged) part of the query or a replacement (corrected spelling suggestion).
Variants§
Original(String)
A term or separator that was not changed
Replaced(String)
A corrected/suggested replacement term
Trait Implementations§
Source§impl Clone for SpelledQuerySegment
impl Clone for SpelledQuerySegment
Source§fn clone(&self) -> SpelledQuerySegment
fn clone(&self) -> SpelledQuerySegment
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 SpelledQuerySegment
impl Debug for SpelledQuerySegment
Source§impl<'de> Deserialize<'de> for SpelledQuerySegment
impl<'de> Deserialize<'de> for SpelledQuerySegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpelledQuerySegment
impl PartialEq for SpelledQuerySegment
Source§impl Serialize for SpelledQuerySegment
impl Serialize for SpelledQuerySegment
impl Eq for SpelledQuerySegment
impl StructuralPartialEq for SpelledQuerySegment
Auto Trait Implementations§
impl Freeze for SpelledQuerySegment
impl RefUnwindSafe for SpelledQuerySegment
impl Send for SpelledQuerySegment
impl Sync for SpelledQuerySegment
impl Unpin for SpelledQuerySegment
impl UnwindSafe for SpelledQuerySegment
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