pub struct HighlightField {
pub name: String,
pub limit: Option<i32>,
pub limit_words: Option<i32>,
pub limit_snippets: Option<i32>,
}
Expand description
HighlightField : Query Highlight field with options set
Fields§
§name: String
§limit: Option<i32>
§limit_words: Option<i32>
§limit_snippets: Option<i32>
Implementations§
Source§impl HighlightField
impl HighlightField
Sourcepub fn new(name: String) -> HighlightField
pub fn new(name: String) -> HighlightField
Query Highlight field with options set
Trait Implementations§
Source§impl Clone for HighlightField
impl Clone for HighlightField
Source§fn clone(&self) -> HighlightField
fn clone(&self) -> HighlightField
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 HighlightField
impl Debug for HighlightField
Source§impl Default for HighlightField
impl Default for HighlightField
Source§fn default() -> HighlightField
fn default() -> HighlightField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HighlightField
impl<'de> Deserialize<'de> for HighlightField
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 HighlightField
impl PartialEq for HighlightField
Source§impl Serialize for HighlightField
impl Serialize for HighlightField
impl StructuralPartialEq for HighlightField
Auto Trait Implementations§
impl Freeze for HighlightField
impl RefUnwindSafe for HighlightField
impl Send for HighlightField
impl Sync for HighlightField
impl Unpin for HighlightField
impl UnwindSafe for HighlightField
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