pub struct WriteBatchResponse<E: EntityKind> { /* private fields */ }Expand description
WriteBatchResponse
Facade over batch write results with explicit accessors.
Implementations§
Source§impl<E: EntityKind> WriteBatchResponse<E>
impl<E: EntityKind> WriteBatchResponse<E>
Sourcepub const fn new(entities: Vec<E>) -> Self
pub const fn new(entities: Vec<E>) -> Self
Construct a facade batch response from stored entities.
Sourcepub fn from_core(inner: CoreWriteBatchResponse<E>) -> Self
pub fn from_core(inner: CoreWriteBatchResponse<E>) -> Self
Construct a facade batch response from the core response.
Sourcepub fn ids(&self) -> impl Iterator<Item = Id<E>> + '_where
E: EntityValue,
pub fn ids(&self) -> impl Iterator<Item = Id<E>> + '_where
E: EntityValue,
Borrow an iterator over primary keys for correlation, reporting, and lookup.
Source§impl<E: EntityKind> WriteBatchResponse<E>
impl<E: EntityKind> WriteBatchResponse<E>
Trait Implementations§
Source§impl<E: Debug + EntityKind> Debug for WriteBatchResponse<E>
impl<E: Debug + EntityKind> Debug for WriteBatchResponse<E>
Source§impl<'a, E: EntityKind> IntoIterator for &'a WriteBatchResponse<E>
impl<'a, E: EntityKind> IntoIterator for &'a WriteBatchResponse<E>
Auto Trait Implementations§
impl<E> Freeze for WriteBatchResponse<E>
impl<E> RefUnwindSafe for WriteBatchResponse<E>where
E: RefUnwindSafe,
impl<E> Send for WriteBatchResponse<E>where
E: Send,
impl<E> Sync for WriteBatchResponse<E>where
E: Sync,
impl<E> Unpin for WriteBatchResponse<E>where
E: Unpin,
impl<E> UnsafeUnpin for WriteBatchResponse<E>
impl<E> UnwindSafe for WriteBatchResponse<E>where
E: UnwindSafe,
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