pub struct PhraseSuggestOption {
pub text: String,
pub score: f32,
pub collate_match: Option<bool>,
pub highlighted: Option<String>,
}
Expand description
Phrase suggester response item option
Fields§
§text: String
Suggested text
score: f32
Suggest score
collate_match: Option<bool>
Phrase suggestions only, true if matching documents for the collate query were found
highlighted: Option<String>
Highlighted version of text
Trait Implementations§
Source§impl Clone for PhraseSuggestOption
impl Clone for PhraseSuggestOption
Source§fn clone(&self) -> PhraseSuggestOption
fn clone(&self) -> PhraseSuggestOption
Returns a copy 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 PhraseSuggestOption
impl Debug for PhraseSuggestOption
Source§impl<'de> Deserialize<'de> for PhraseSuggestOption
impl<'de> Deserialize<'de> for PhraseSuggestOption
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 PhraseSuggestOption
impl PartialEq for PhraseSuggestOption
Source§impl Serialize for PhraseSuggestOption
impl Serialize for PhraseSuggestOption
impl StructuralPartialEq for PhraseSuggestOption
Auto Trait Implementations§
impl Freeze for PhraseSuggestOption
impl RefUnwindSafe for PhraseSuggestOption
impl Send for PhraseSuggestOption
impl Sync for PhraseSuggestOption
impl Unpin for PhraseSuggestOption
impl UnwindSafe for PhraseSuggestOption
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