pub enum MutationResult<E: EntityKind> {
Count {
row_count: u32,
},
Entity(E),
Entities(Vec<E>),
}Expand description
MutationResult
Unified facade result for authored write operations. This keeps insert, create, update, replace, structural mutation, batch mutation, and count-first delete under one public result family instead of exposing separate single-row, batch-row, and bare-count payload types.
Variants§
Implementations§
Source§impl<E: EntityKind> MutationResult<E>
impl<E: EntityKind> MutationResult<E>
Sourcepub const fn from_count(row_count: u32) -> Self
pub const fn from_count(row_count: u32) -> Self
Construct one count-only mutation result.
Sourcepub const fn from_entity(entity: E) -> Self
pub const fn from_entity(entity: E) -> Self
Construct one single-entity mutation result.
Sourcepub const fn from_entities(entities: Vec<E>) -> Self
pub const fn from_entities(entities: Vec<E>) -> Self
Construct one multi-entity mutation result.
Sourcepub fn from_core_batch(inner: CoreWriteBatchResponse<E>) -> Self
pub fn from_core_batch(inner: CoreWriteBatchResponse<E>) -> Self
Construct one multi-entity mutation result from the core batch surface.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for MutationResult<E>where
E: Freeze,
impl<E> RefUnwindSafe for MutationResult<E>where
E: RefUnwindSafe,
impl<E> Send for MutationResult<E>where
E: Send,
impl<E> Sync for MutationResult<E>where
E: Sync,
impl<E> Unpin for MutationResult<E>where
E: Unpin,
impl<E> UnsafeUnpin for MutationResult<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for MutationResult<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