pub enum UpsertResolution {
Inserted,
Updated,
NoOp,
}Expand description
v0.6.0 Tier 1 #3 — the atomic resolution of a single UPSERT.
Every UpsertApplied event carries exactly one of these. The
discriminator is a structural part of the audit payload so
downstream readers never have to infer intent from a dual-write
sequence — a property the notebar helper’s UPDATE+INSERT pair
explicitly lacked.
Variants§
Inserted
No prior row at the conflict key — the upsert appended a new row.
Updated
A prior row existed — ON CONFLICT DO UPDATE SET ... fired and
the row was rewritten with the merged column set.
NoOp
A prior row existed and the clause was DO NOTHING. No storage
mutation, no row-level audit beyond this UpsertApplied record.
Trait Implementations§
Source§impl Clone for UpsertResolution
impl Clone for UpsertResolution
Source§fn clone(&self) -> UpsertResolution
fn clone(&self) -> UpsertResolution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpsertResolution
impl Debug for UpsertResolution
Source§impl<'de> Deserialize<'de> for UpsertResolution
impl<'de> Deserialize<'de> for UpsertResolution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for UpsertResolution
impl Hash for UpsertResolution
Source§impl PartialEq for UpsertResolution
impl PartialEq for UpsertResolution
Source§impl Serialize for UpsertResolution
impl Serialize for UpsertResolution
impl Copy for UpsertResolution
impl Eq for UpsertResolution
impl StructuralPartialEq for UpsertResolution
Auto Trait Implementations§
impl Freeze for UpsertResolution
impl RefUnwindSafe for UpsertResolution
impl Send for UpsertResolution
impl Sync for UpsertResolution
impl Unpin for UpsertResolution
impl UnsafeUnpin for UpsertResolution
impl UnwindSafe for UpsertResolution
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