pub struct TextSearchResult {
pub pdgid: PdgId,
pub source: TextSearchSource,
pub text: String,
pub snippet: String,
pub score: f64,
pub pdg_text: Option<PdgText>,
}Expand description
A full-text search hit from crate::Pdg::search_text.
Fields§
§pdgid: PdgIdPDG identifier for the matching row.
source: TextSearchSourceSource table and location for the match.
text: StringFull source text that matched the query.
snippet: StringSQLite-generated snippet with matched terms bracketed.
score: f64FTS rank score, where lower values are better matches.
pdg_text: Option<PdgText>Text-block representation when TextSearchSource::Text matched.
Trait Implementations§
Source§impl Clone for TextSearchResult
impl Clone for TextSearchResult
Source§fn clone(&self) -> TextSearchResult
fn clone(&self) -> TextSearchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextSearchResult
impl RefUnwindSafe for TextSearchResult
impl Send for TextSearchResult
impl Sync for TextSearchResult
impl Unpin for TextSearchResult
impl UnsafeUnpin for TextSearchResult
impl UnwindSafe for TextSearchResult
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