pub struct IngestBatch { /* private fields */ }Expand description
One atomic caller batch of document upserts.
Implementations§
Source§impl IngestBatch
impl IngestBatch
Sourcepub const fn new(documents: Vec<IngestDocument>) -> Self
pub const fn new(documents: Vec<IngestDocument>) -> Self
Takes ownership of the upserts in caller order.
Sourcepub const fn with_epoch(self, epoch: EpochIdentity) -> Self
pub const fn with_epoch(self, epoch: EpochIdentity) -> Self
Declares the interpretation identity that produced every vector.
Sourcepub fn documents(&self) -> &[IngestDocument]
pub fn documents(&self) -> &[IngestDocument]
Returns the ordered document upserts.
Trait Implementations§
Source§impl Clone for IngestBatch
impl Clone for IngestBatch
Source§impl Debug for IngestBatch
impl Debug for IngestBatch
Source§impl Default for IngestBatch
impl Default for IngestBatch
Source§impl PartialEq for IngestBatch
impl PartialEq for IngestBatch
impl StructuralPartialEq for IngestBatch
Auto Trait Implementations§
impl Freeze for IngestBatch
impl RefUnwindSafe for IngestBatch
impl Send for IngestBatch
impl Sync for IngestBatch
impl Unpin for IngestBatch
impl UnsafeUnpin for IngestBatch
impl UnwindSafe for IngestBatch
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