pub struct WriteResponse<E> { /* private fields */ }Expand description
WriteResponse
Result of a single write operation. Provides explicit access to the stored entity and its identity.
Implementations§
Source§impl<E> WriteResponse<E>
impl<E> WriteResponse<E>
Sourcepub fn key(&self) -> E::Idwhere
E: EntityValue,
pub fn key(&self) -> E::Idwhere
E: EntityValue,
Return the stored entity’s primary key.
Sourcepub fn reference(&self) -> Ref<E>where
E: EntityKind + EntityValue,
pub fn reference(&self) -> Ref<E>where
E: EntityKind + EntityValue,
Return a typed reference to the stored entity.
Sourcepub fn view(&self) -> EntityView<E>where
E: View,
pub fn view(&self) -> EntityView<E>where
E: View,
Return the stored entity as its view type.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for WriteResponse<E>where
E: Freeze,
impl<E> RefUnwindSafe for WriteResponse<E>where
E: RefUnwindSafe,
impl<E> Send for WriteResponse<E>where
E: Send,
impl<E> Sync for WriteResponse<E>where
E: Sync,
impl<E> Unpin for WriteResponse<E>where
E: Unpin,
impl<E> UnsafeUnpin for WriteResponse<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for WriteResponse<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