pub struct BoundUpsert {
pub constraint: UpsertConstraint,
pub assignments: Vec<BoundAssignment>,
pub do_update: bool,
pub filter: Option<BoundExpr>,
pub triggers: Vec<BoundTrigger>,
}Expand description
A bound ON CONFLICT ... DO UPDATE clause.
Fields§
§constraint: UpsertConstraintThe constraint the clause’s conflict target names.
assignments: Vec<BoundAssignment>The assignments, or empty for DO NOTHING.
do_update: boolWhether the action is DO UPDATE.
filter: Option<BoundExpr>The WHERE on the DO UPDATE.
triggers: Vec<BoundTrigger>The UPDATE triggers the clause fires, and the foreign key checks an
update of the assigned columns needs. Empty for DO NOTHING.
Trait Implementations§
Source§impl Clone for BoundUpsert
impl Clone for BoundUpsert
Source§impl Debug for BoundUpsert
impl Debug for BoundUpsert
Source§impl PartialEq for BoundUpsert
impl PartialEq for BoundUpsert
impl StructuralPartialEq for BoundUpsert
Auto Trait Implementations§
impl !Send for BoundUpsert
impl !Sync for BoundUpsert
impl Freeze for BoundUpsert
impl RefUnwindSafe for BoundUpsert
impl Unpin for BoundUpsert
impl UnsafeUnpin for BoundUpsert
impl UnwindSafe for BoundUpsert
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