pub struct Excerpt {
pub text: String,
pub highlight_ranges: Vec<HighlightRange>,
pub score: usize,
pub internal_annotations: Vec<InternalWordAnnotation>,
pub fields: Fields,
}Expand description
An excerpt of a document’s contents, that contains words that were part of the search query.
Fields§
§text: String§highlight_ranges: Vec<HighlightRange>§score: usize§internal_annotations: Vec<InternalWordAnnotation>§fields: FieldsTrait Implementations§
Source§impl<'de> Deserialize<'de> for Excerpt
impl<'de> Deserialize<'de> for Excerpt
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
impl StructuralPartialEq for Excerpt
Auto Trait Implementations§
impl Freeze for Excerpt
impl RefUnwindSafe for Excerpt
impl Send for Excerpt
impl Sync for Excerpt
impl Unpin for Excerpt
impl UnwindSafe for Excerpt
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