pub struct BatchResult {
pub documents_indexed: usize,
pub errors: Vec<(String, RagError)>,
pub elapsed_ms: u64,
pub batches_processed: usize,
}Expand description
Result of batch processing
Fields§
§documents_indexed: usizeNumber of documents successfully indexed
errors: Vec<(String, RagError)>Documents that failed with their errors
elapsed_ms: u64Total elapsed time in milliseconds
batches_processed: usizeNumber of batches processed
Implementations§
Source§impl BatchResult
impl BatchResult
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if there were any errors
Sourcepub fn throughput(&self) -> f64
pub fn throughput(&self) -> f64
Get documents per second throughput
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchResult
impl !RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl !UnwindSafe for BatchResult
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> 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