pub struct TermSuggestOption {
pub text: String,
pub score: f32,
pub frequency: u64,
}
Expand description
Term suggester response item option
Fields§
§text: String
Suggested text
score: f32
Suggest score
frequency: u64
Term frequency
Trait Implementations§
Source§impl Clone for TermSuggestOption
impl Clone for TermSuggestOption
Source§fn clone(&self) -> TermSuggestOption
fn clone(&self) -> TermSuggestOption
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 TermSuggestOption
impl Debug for TermSuggestOption
Source§impl<'de> Deserialize<'de> for TermSuggestOption
impl<'de> Deserialize<'de> for TermSuggestOption
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 TermSuggestOption
impl PartialEq for TermSuggestOption
Source§impl Serialize for TermSuggestOption
impl Serialize for TermSuggestOption
impl StructuralPartialEq for TermSuggestOption
Auto Trait Implementations§
impl Freeze for TermSuggestOption
impl RefUnwindSafe for TermSuggestOption
impl Send for TermSuggestOption
impl Sync for TermSuggestOption
impl Unpin for TermSuggestOption
impl UnwindSafe for TermSuggestOption
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