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: 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
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PhraseSuggestOption) -> bool
fn ne(&self, other: &PhraseSuggestOption) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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