pub struct ContextChunk {
pub content: String,
pub url: String,
pub title: String,
pub score: f64,
pub content_type: Option<String>,
}Expand description
A single chunk of context from a web page (simple variant).
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 ContextChunk
impl Clone for ContextChunk
Source§fn clone(&self) -> ContextChunk
fn clone(&self) -> ContextChunk
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 ContextChunk
impl Debug for ContextChunk
Source§impl<'de> Deserialize<'de> for ContextChunk
impl<'de> Deserialize<'de> for ContextChunk
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 ContextChunk
impl RefUnwindSafe for ContextChunk
impl Send for ContextChunk
impl Sync for ContextChunk
impl Unpin for ContextChunk
impl UnsafeUnpin for ContextChunk
impl UnwindSafe for ContextChunk
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