Skip to main content

WriteBatchResponse

Struct WriteBatchResponse 

Source
pub struct WriteBatchResponse<E> { /* private fields */ }
Expand description

WriteBatchResponse

Result of a batch write operation. Provides explicit access to stored entities and their identifiers.

Implementations§

Source§

impl<E> WriteBatchResponse<E>

Source

pub fn new(entities: Vec<E>) -> Self

Construct a batch response from stored entities.

Source

pub fn entries(&self) -> &[WriteResponse<E>]

Return all write responses.

Source

pub const fn len(&self) -> usize

Return the number of entries.

Source

pub const fn is_empty(&self) -> bool

Returns true if the batch is empty.

Source

pub fn entities(self) -> Vec<E>

Return all stored entities.

Source

pub fn ids(&self) -> Vec<Id<E>>
where E: EntityValue,

Return all primary keys for correlation, reporting, and lookup.

Source

pub fn views(&self) -> Vec<<E as AsView>::ViewType>
where E: AsView,

Return all views.

Source§

impl<E> WriteBatchResponse<E>

Source

pub fn iter(&self) -> Iter<'_, WriteResponse<E>>

Trait Implementations§

Source§

impl<E: Debug> Debug for WriteBatchResponse<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, E> IntoIterator for &'a WriteBatchResponse<E>

Source§

type Item = &'a WriteResponse<E>

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, WriteResponse<E>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<E> IntoIterator for WriteBatchResponse<E>

Source§

type Item = WriteResponse<E>

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<WriteResponse<E>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V