pub struct SearchHit {
pub kind: String,
pub collection: String,
pub id: String,
pub text: String,
pub score: f64,
pub body: String,
pub version: Option<u64>,
pub created_at: String,
pub updated_at: Option<String>,
pub event_type: Option<String>,
}Expand description
A single match returned by a search query.
Fields§
§kind: StringResult kind: “object” or “event”.
collection: StringCollection or stream name.
id: StringObject id or event sequence number.
text: StringThe indexed text that matched.
score: f64Relevancy score.
body: StringThe serialized body.
version: Option<u64>Object version (only populated for objects).
created_at: StringCreated timestamp.
updated_at: Option<String>Updated timestamp (only populated for objects).
event_type: Option<String>Event type (only populated for events).
Trait Implementations§
impl StructuralPartialEq for SearchHit
Auto Trait Implementations§
impl Freeze for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHit
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