pub struct BatchReport {
pub inserted: usize,
pub skipped: usize,
pub first_error: Option<(usize, CorpusError)>,
}Expand description
Accounting summary returned by Corpus::insert_batch.
Fields§
§inserted: usizeNumber of vectors successfully inserted.
In strict (all-or-nothing) mode this is either 0 (on Err) or
vectors.len() (on Ok).
skipped: usizeNumber of vectors skipped due to soft failure.
Always 0 in strict mode; non-zero only in lenient mode (Phase 22+).
first_error: Option<(usize, CorpusError)>First error encountered, with its zero-based batch index.
None on strict-mode success; Some in lenient mode when any vector
was rejected.
Trait Implementations§
Source§impl Clone for BatchReport
impl Clone for BatchReport
Source§fn clone(&self) -> BatchReport
fn clone(&self) -> BatchReport
Returns a duplicate of the value. Read more
1.0.0 · 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 BatchReport
impl Debug for BatchReport
Source§impl PartialEq for BatchReport
impl PartialEq for BatchReport
impl Eq for BatchReport
impl StructuralPartialEq for BatchReport
Auto Trait Implementations§
impl Freeze for BatchReport
impl RefUnwindSafe for BatchReport
impl Send for BatchReport
impl Sync for BatchReport
impl Unpin for BatchReport
impl UnsafeUnpin for BatchReport
impl UnwindSafe for BatchReport
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