pub enum MergeUpdateKind {
Set(Vec<Assignment>),
Wildcard,
}Expand description
The kind of update used within a MERGE statement.
Variants§
Set(Vec<Assignment>)
Standard update with explicit assignments.
Example:
UPDATE SET quantity = source.quantity, name = source.nameWildcard
Trait Implementations§
Source§impl Clone for MergeUpdateKind
impl Clone for MergeUpdateKind
Source§fn clone(&self) -> MergeUpdateKind
fn clone(&self) -> MergeUpdateKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MergeUpdateKind
impl Debug for MergeUpdateKind
Source§impl<'de> Deserialize<'de> for MergeUpdateKind
impl<'de> Deserialize<'de> for MergeUpdateKind
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 Display for MergeUpdateKind
impl Display for MergeUpdateKind
impl Eq for MergeUpdateKind
Source§impl Hash for MergeUpdateKind
impl Hash for MergeUpdateKind
Source§impl Ord for MergeUpdateKind
impl Ord for MergeUpdateKind
Source§fn cmp(&self, other: &MergeUpdateKind) -> Ordering
fn cmp(&self, other: &MergeUpdateKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MergeUpdateKind
impl PartialEq for MergeUpdateKind
Source§fn eq(&self, other: &MergeUpdateKind) -> bool
fn eq(&self, other: &MergeUpdateKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MergeUpdateKind
impl PartialOrd for MergeUpdateKind
Source§impl Serialize for MergeUpdateKind
impl Serialize for MergeUpdateKind
impl StructuralPartialEq for MergeUpdateKind
Source§impl Visit for MergeUpdateKind
impl Visit for MergeUpdateKind
Source§impl VisitMut for MergeUpdateKind
impl VisitMut for MergeUpdateKind
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreAuto Trait Implementations§
impl Freeze for MergeUpdateKind
impl RefUnwindSafe for MergeUpdateKind
impl Send for MergeUpdateKind
impl Sync for MergeUpdateKind
impl Unpin for MergeUpdateKind
impl UnsafeUnpin for MergeUpdateKind
impl UnwindSafe for MergeUpdateKind
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