pub struct SearchResult {
pub event_id: i64,
pub session_id: String,
pub session_short_id: String,
pub step: Option<i64>,
pub kind: EventKind,
pub summary: String,
pub snippet: String,
pub ts_ms: i64,
}Expand description
A search result from FTS5 full-text search.
Fields§
§event_id: i64The matching event’s row id.
session_id: StringThe owning session’s full UUID.
session_short_id: StringThe owning session’s 6-hex-char short id.
step: Option<i64>The event’s step ordinal, if any.
kind: EventKindThe event kind.
summary: StringThe event’s one-line summary.
snippet: StringA highlighted snippet from the FTS5 snippet() function, with <b>
and </b> markers around matching terms.
ts_ms: i64Milliseconds since session start.
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
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 moreSource§impl Debug for SearchResult
impl Debug for SearchResult
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnsafeUnpin for SearchResult
impl UnwindSafe for SearchResult
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