pub struct SearchContextChunk {
pub content: String,
pub url: String,
pub title: String,
pub score: f64,
pub content_type: Option<String>,
}Expand description
A content chunk from search context.
Fields§
§content: StringExtracted page content.
url: StringSource URL.
title: StringPage title.
score: f64Relevance score.
content_type: Option<String>Content type (e.g. “text/html”).
Trait Implementations§
Source§impl Clone for SearchContextChunk
impl Clone for SearchContextChunk
Source§fn clone(&self) -> SearchContextChunk
fn clone(&self) -> SearchContextChunk
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 SearchContextChunk
impl Debug for SearchContextChunk
Source§impl<'de> Deserialize<'de> for SearchContextChunk
impl<'de> Deserialize<'de> for SearchContextChunk
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
Auto Trait Implementations§
impl Freeze for SearchContextChunk
impl RefUnwindSafe for SearchContextChunk
impl Send for SearchContextChunk
impl Sync for SearchContextChunk
impl Unpin for SearchContextChunk
impl UnsafeUnpin for SearchContextChunk
impl UnwindSafe for SearchContextChunk
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