Struct elasticsearch_dsl::search::PhraseSuggestOption
source · [−]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: StringSuggested text
score: f32Suggest 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
sourceimpl Clone for PhraseSuggestOption
impl Clone for PhraseSuggestOption
sourcefn clone(&self) -> PhraseSuggestOption
fn clone(&self) -> PhraseSuggestOption
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PhraseSuggestOption
impl Debug for PhraseSuggestOption
sourceimpl<'de> Deserialize<'de> for PhraseSuggestOption
impl<'de> Deserialize<'de> for PhraseSuggestOption
sourcefn 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
sourceimpl PartialEq<PhraseSuggestOption> for PhraseSuggestOption
impl PartialEq<PhraseSuggestOption> for PhraseSuggestOption
sourcefn eq(&self, other: &PhraseSuggestOption) -> bool
fn eq(&self, other: &PhraseSuggestOption) -> bool
sourceimpl Serialize for PhraseSuggestOption
impl Serialize for PhraseSuggestOption
impl StructuralPartialEq for PhraseSuggestOption
Auto Trait Implementations
impl RefUnwindSafe for PhraseSuggestOption
impl Send for PhraseSuggestOption
impl Sync for PhraseSuggestOption
impl Unpin for PhraseSuggestOption
impl UnwindSafe for PhraseSuggestOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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