#[non_exhaustive]pub struct ScanBatch {
pub ids: Vec<String>,
pub vectors: Option<Matrix>,
pub attrs: Option<Vec<Option<Value>>>,
pub sparse: Option<Vec<Option<SparseVector>>>,
pub last_id: String,
}Expand description
One batch of a scan, in ascending id order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ids: Vec<String>The documents’ ids.
vectors: Option<Matrix>The documents’ vectors, row i for ids[i]. None when
Columns::vectors is off.
attrs: Option<Vec<Option<Value>>>Each document’s attributes, None for a document without any. None
as a whole when Columns::attrs is AttrColumns::None.
sparse: Option<Vec<Option<SparseVector>>>Each document’s sparse vector, None for a document without one.
None as a whole when Columns::sparse is off.
last_id: StringThe last id of the batch: pass it as ScanOptions::after to resume.
Trait Implementations§
impl StructuralPartialEq for ScanBatch
Auto Trait Implementations§
impl Forget for ScanBatch
impl Freeze for ScanBatchwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<f32>: Freeze,
PhantomData<Option<Value>>: Freeze,
PhantomData<Option<Vec<(u32, f32)>>>: Freeze,
PhantomData<u8>: Freeze,
impl Move for ScanBatch
impl RefUnwindSafe for ScanBatch
impl Send for ScanBatch
impl Sync for ScanBatch
impl Unpin for ScanBatch
impl UnsafeUnpin for ScanBatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<Option<Value>>: UnsafeUnpin,
PhantomData<Option<Vec<(u32, f32)>>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ScanBatch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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