pub struct SnippetResult {
    pub path: String,
    pub content: String,
    pub score: f64,
    pub page_number: Option<u32>,
    pub metadata: Option<Metadata>,
}Expand description
Query result for top snippets
Fields§
§path: String§content: String§score: f64§page_number: Option<u32>§metadata: Option<Metadata>Trait Implementations§
Source§impl Debug for SnippetResult
 
impl Debug for SnippetResult
Source§impl<'de> Deserialize<'de> for SnippetResult
 
impl<'de> Deserialize<'de> for SnippetResult
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 SnippetResult
impl RefUnwindSafe for SnippetResult
impl Send for SnippetResult
impl Sync for SnippetResult
impl Unpin for SnippetResult
impl UnwindSafe for SnippetResult
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