pub struct Excluded<T>(/* private fields */);Expand description
The row an INSERT proposed, as ON CONFLICT DO UPDATE sees it: a
pseudo-table holding the target’s own columns. Deliberately not a
BaseTable, so it is not a table a query can select from — excluded
is the only way to name a column of it.
Known limitation: a schema table actually called excluded shadows
nothing and is shadowed by this one, so an assignment naming that table
in a DO UPDATE reads the proposed row. This is the general case of the
one scope documents — two tables sharing a name are
one table to the renderer.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Excluded<T>
impl<T> RefUnwindSafe for Excluded<T>
impl<T> Send for Excluded<T>
impl<T> Sync for Excluded<T>
impl<T> Unpin for Excluded<T>
impl<T> UnsafeUnpin for Excluded<T>
impl<T> UnwindSafe for Excluded<T>
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