pub struct BatchConfig {
pub batch_size: usize,
pub progress_callback: Option<ProgressCallback>,
pub total_documents: Option<usize>,
pub validate_dimensions: bool,
pub continue_on_error: bool,
}Expand description
Configuration for batch operations
Fields§
§batch_size: usizeNumber of documents to process before triggering progress callback
progress_callback: Option<ProgressCallback>Optional progress callback
total_documents: Option<usize>Total documents (if known ahead of time)
validate_dimensions: boolWhether to validate dimensions on every document
continue_on_error: boolContinue on individual document errors
Implementations§
Source§impl BatchConfig
impl BatchConfig
Sourcepub fn with_batch_size(self, size: usize) -> Self
pub fn with_batch_size(self, size: usize) -> Self
Set the batch size
Sourcepub fn with_progress<F>(self, callback: F) -> Self
pub fn with_progress<F>(self, callback: F) -> Self
Set a progress callback
Sourcepub fn with_total(self, total: usize) -> Self
pub fn with_total(self, total: usize) -> Self
Set the total document count (enables ETA calculation)
Sourcepub fn with_validation(self, validate: bool) -> Self
pub fn with_validation(self, validate: bool) -> Self
Enable/disable dimension validation
Sourcepub fn continue_on_error(self, continue_: bool) -> Self
pub fn continue_on_error(self, continue_: bool) -> Self
Continue processing even if individual documents fail
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§fn clone(&self) -> BatchConfig
fn clone(&self) -> BatchConfig
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 moreAuto Trait Implementations§
impl Freeze for BatchConfig
impl !RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnsafeUnpin for BatchConfig
impl !UnwindSafe for BatchConfig
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