pub enum InsertOutcome<E> {
Inserted(E),
AlreadyPresent,
}Expand description
Result of inserting one input conditionally on its declared unique index.
Variants§
Inserted(E)
The input was inserted, including any generated ID and managed timestamps.
AlreadyPresent
An existing row owns the selected key. No row was changed.
Trait Implementations§
Source§impl<E: Debug> Debug for InsertOutcome<E>
impl<E: Debug> Debug for InsertOutcome<E>
impl<E: Eq> Eq for InsertOutcome<E>
Source§impl<E: PartialEq> PartialEq for InsertOutcome<E>
impl<E: PartialEq> PartialEq for InsertOutcome<E>
impl<E: PartialEq> StructuralPartialEq for InsertOutcome<E>
Auto Trait Implementations§
impl<E> Forget for InsertOutcome<E>
impl<E> Freeze for InsertOutcome<E>where
E: Freeze,
impl<E> Move for InsertOutcome<E>
impl<E> RefUnwindSafe for InsertOutcome<E>where
E: RefUnwindSafe,
impl<E> Send for InsertOutcome<E>where
E: Send,
impl<E> Sync for InsertOutcome<E>where
E: Sync,
impl<E> Unpin for InsertOutcome<E>where
E: Unpin,
impl<E> UnsafeUnpin for InsertOutcome<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for InsertOutcome<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