pub enum StructuralMutation {
Insert {
entity: String,
patch: StructuralPatch,
},
Update {
entity: String,
key: InputValue,
patch: StructuralPatch,
},
Replace {
entity: String,
key: InputValue,
patch: StructuralPatch,
},
Delete {
entity: String,
key: InputValue,
},
}Expand description
StructuralMutation
Entity-name-driven dynamic mutation request. Each variant owns its key requirement and row-existence semantics.
Variants§
Insert
Insert one row and derive its identity from the accepted after-image.
Update
Patch one existing row.
Fields
§
key: InputValuePublic scalar or composite primary key.
§
patch: StructuralPatchAuthored update fields.
Replace
Replace one row, inserting it when absent.
Fields
§
key: InputValuePublic scalar or composite primary key.
§
patch: StructuralPatchAuthored replacement fields.
Delete
Delete one existing row.
Fields
§
key: InputValuePublic scalar or composite primary key.
Trait Implementations§
Source§impl Clone for StructuralMutation
impl Clone for StructuralMutation
Source§impl Debug for StructuralMutation
impl Debug for StructuralMutation
impl Eq for StructuralMutation
Source§impl PartialEq for StructuralMutation
impl PartialEq for StructuralMutation
impl StructuralPartialEq for StructuralMutation
Auto Trait Implementations§
impl Freeze for StructuralMutation
impl RefUnwindSafe for StructuralMutation
impl Send for StructuralMutation
impl Sync for StructuralMutation
impl Unpin for StructuralMutation
impl UnsafeUnpin for StructuralMutation
impl UnwindSafe for StructuralMutation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.