pub struct BatchResult {
pub total: usize,
pub skipped: usize,
pub submitted: usize,
pub deleted: usize,
pub errors: usize,
}Expand description
Result of processing a batch.
Fields§
§total: usizeNumber of events in the batch (after dedup).
skipped: usizeNumber of items skipped (already current).
submitted: usizeNumber of items submitted.
deleted: usizeNumber of items deleted.
errors: usizeNumber of errors.
Implementations§
Source§impl BatchResult
impl BatchResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if all operations succeeded.
Trait Implementations§
Source§impl Debug for BatchResult
impl Debug for BatchResult
Source§impl Default for BatchResult
impl Default for BatchResult
Source§fn default() -> BatchResult
fn default() -> BatchResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin 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> 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