pub struct MessageSearchBatch { /* private fields */ }Expand description
One owned, fully enriched result batch. The aligned context window at index i belongs to
result i; included session data is a mergeable delta for sessions first encountered in this
batch and is not repeated in later batches from the same request.
Implementations§
Source§impl MessageSearchBatch
impl MessageSearchBatch
pub fn results(&self) -> &[MessageSearchHit]
pub fn context_windows(&self) -> &[Vec<MessageHit>]
pub const fn included(&self) -> &MessageSearchIncludedData
Sourcepub fn result_document<'a>(
&'a self,
request: &'a ResolvedMessageSearchRequest,
index: usize,
) -> Option<MessageSearchResultDocument<'a>>
pub fn result_document<'a>( &'a self, request: &'a ResolvedMessageSearchRequest, index: usize, ) -> Option<MessageSearchResultDocument<'a>>
Borrow one canonical semantic result without building an adapter-owned dictionary.
pub fn into_parts( self, ) -> (Vec<MessageSearchHit>, Vec<Vec<MessageHit>>, MessageSearchIncludedData)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MessageSearchBatch
impl RefUnwindSafe for MessageSearchBatch
impl Send for MessageSearchBatch
impl Sync for MessageSearchBatch
impl Unpin for MessageSearchBatch
impl UnsafeUnpin for MessageSearchBatch
impl UnwindSafe for MessageSearchBatch
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more