pub struct SearchResponse {
pub hits: Vec<SearchHit>,
pub revision: GraphRevision,
pub truncated: Option<TruncationReason>,
}Expand description
Search response, revision-stamped like every compound read.
Fields§
§hits: Vec<SearchHit>§revision: GraphRevision§truncated: Option<TruncationReason>Set when the hit list was cut short by response_max_bytes rather
than by the caller’s limit.
A short list is otherwise indistinguishable from a small graph, and the two call for opposite reactions: one is a reason to narrow the query, the other a reason to stop looking.
Trait Implementations§
Source§impl Clone for SearchResponse
impl Clone for SearchResponse
Source§impl Debug for SearchResponse
impl Debug for SearchResponse
Source§impl PartialEq for SearchResponse
impl PartialEq for SearchResponse
impl StructuralPartialEq for SearchResponse
Auto Trait Implementations§
impl Freeze for SearchResponse
impl RefUnwindSafe for SearchResponse
impl Send for SearchResponse
impl Sync for SearchResponse
impl Unpin for SearchResponse
impl UnsafeUnpin for SearchResponse
impl UnwindSafe for SearchResponse
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